@@ -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