Skip to content

Commit

Permalink
small fixes before release
Browse files Browse the repository at this point in the history
  • Loading branch information
ReightI committed Aug 3, 2023
1 parent b167741 commit 7ae60cc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
1 change: 1 addition & 0 deletions lib/components/modals/select_groups_modal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Future<List<GroupModel>?> showSelectGroupModal(
]) async {
return showMaterialModalBottomSheet<List<GroupModel>>(
context: context,
enableDrag: false,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(30.0)),
),
Expand Down
1 change: 1 addition & 0 deletions lib/components/modals/select_tags_modal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ Future<List<TagModel>?> showSelectTagsModal(
]) async {
return showMaterialModalBottomSheet<List<TagModel>>(
context: context,
enableDrag: false,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(30.0)),
),
Expand Down
38 changes: 23 additions & 15 deletions lib/views/album/album_privacy_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,6 @@ class _AlbumPrivacyPageState extends State<AlbumPrivacyPage> {
});
}

void _onRemoveGroup(int index) {
setState(() {
_groups.removeAt(index);
});
}

Future<void> _onSelectGroups() async {
List<GroupModel>? selectedGroups = await showSelectGroupModal(
context,
Expand Down Expand Up @@ -188,16 +182,30 @@ class _AlbumPrivacyPageState extends State<AlbumPrivacyPage> {
],
),
),
Divider(
color: Theme.of(context).disabledColor,
AnimatedOpacity(
duration: const Duration(milliseconds: 150),
curve: Curves.ease,
opacity: _selectedMode == AlbumStatus.public ? .0 : 1.0,
child: Divider(
color: Theme.of(context).disabledColor,
),
),
SwitchListTile(
value: _recursive,
onChanged: (value) => setState(() {
_recursive = value;
}),
title: Text(appStrings.categoryPrivacyRecursive),
subtitle: Text(appStrings.categoryPrivacyRecursive_message),
AnimatedSize(
duration: const Duration(milliseconds: 300),
reverseDuration: const Duration(milliseconds: 150),
curve: Curves.ease,
alignment: Alignment.bottomCenter,
child: SizedBox(
height: _selectedMode == AlbumStatus.public ? .0 : null,
child: SwitchListTile(
value: _recursive,
onChanged: (value) => setState(() {
_recursive = value;
}),
title: Text(appStrings.categoryPrivacyRecursive),
subtitle: Text(appStrings.categoryPrivacyRecursive_message),
),
),
),
Padding(
padding: const EdgeInsets.symmetric(
Expand Down

0 comments on commit 7ae60cc

Please sign in to comment.