Skip to content

Commit 7ae60cc

Browse files
committed
small fixes before release
1 parent b167741 commit 7ae60cc

3 files changed

Lines changed: 25 additions & 15 deletions

File tree

lib/components/modals/select_groups_modal.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ Future<List<GroupModel>?> showSelectGroupModal(
145145
]) async {
146146
return showMaterialModalBottomSheet<List<GroupModel>>(
147147
context: context,
148+
enableDrag: false,
148149
shape: RoundedRectangleBorder(
149150
borderRadius: BorderRadius.vertical(top: Radius.circular(30.0)),
150151
),

lib/components/modals/select_tags_modal.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ Future<List<TagModel>?> showSelectTagsModal(
181181
]) async {
182182
return showMaterialModalBottomSheet<List<TagModel>>(
183183
context: context,
184+
enableDrag: false,
184185
shape: RoundedRectangleBorder(
185186
borderRadius: BorderRadius.vertical(top: Radius.circular(30.0)),
186187
),

lib/views/album/album_privacy_page.dart

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ class _AlbumPrivacyPageState extends State<AlbumPrivacyPage> {
108108
});
109109
}
110110

111-
void _onRemoveGroup(int index) {
112-
setState(() {
113-
_groups.removeAt(index);
114-
});
115-
}
116-
117111
Future<void> _onSelectGroups() async {
118112
List<GroupModel>? selectedGroups = await showSelectGroupModal(
119113
context,
@@ -188,16 +182,30 @@ class _AlbumPrivacyPageState extends State<AlbumPrivacyPage> {
188182
],
189183
),
190184
),
191-
Divider(
192-
color: Theme.of(context).disabledColor,
185+
AnimatedOpacity(
186+
duration: const Duration(milliseconds: 150),
187+
curve: Curves.ease,
188+
opacity: _selectedMode == AlbumStatus.public ? .0 : 1.0,
189+
child: Divider(
190+
color: Theme.of(context).disabledColor,
191+
),
193192
),
194-
SwitchListTile(
195-
value: _recursive,
196-
onChanged: (value) => setState(() {
197-
_recursive = value;
198-
}),
199-
title: Text(appStrings.categoryPrivacyRecursive),
200-
subtitle: Text(appStrings.categoryPrivacyRecursive_message),
193+
AnimatedSize(
194+
duration: const Duration(milliseconds: 300),
195+
reverseDuration: const Duration(milliseconds: 150),
196+
curve: Curves.ease,
197+
alignment: Alignment.bottomCenter,
198+
child: SizedBox(
199+
height: _selectedMode == AlbumStatus.public ? .0 : null,
200+
child: SwitchListTile(
201+
value: _recursive,
202+
onChanged: (value) => setState(() {
203+
_recursive = value;
204+
}),
205+
title: Text(appStrings.categoryPrivacyRecursive),
206+
subtitle: Text(appStrings.categoryPrivacyRecursive_message),
207+
),
208+
),
201209
),
202210
Padding(
203211
padding: const EdgeInsets.symmetric(

0 commit comments

Comments
 (0)