File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ class _SearchPageState extends State<SearchPage> {
354354 for (var index = 0 ; index < playlistsCount; index++ ) {
355355 final playlist = _playlistsSearchResult[index];
356356 final isLast = index == playlistsCount - 1 ;
357+ final borderRadius = getItemBorderRadius (index, playlistsCount);
357358
358359 widgets.add (
359360 Padding (
@@ -364,6 +365,7 @@ class _SearchPageState extends State<SearchPage> {
364365 playlistId: playlist['ytid' ],
365366 playlistArtwork: playlist['image' ],
366367 cubeIcon: FluentIcons .apps_list_24_filled,
368+ borderRadius: borderRadius,
367369 ),
368370 ),
369371 );
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ class SettingsPage extends StatelessWidget {
8080 Color activatedColor,
8181 Color inactivatedColor,
8282 ) {
83+ final isOffline = offlineMode.value;
84+
8385 return Column (
8486 children: [
8587 SectionHeader (
@@ -167,6 +169,9 @@ class SettingsPage extends StatelessWidget {
167169 context.l10n! .offlineMode,
168170 FluentIcons .cloud_off_24_regular,
169171 description: context.l10n! .offlineModeDescription,
172+ borderRadius: isOffline && isFdroidBuild
173+ ? commonCustomBarRadiusLast
174+ : BorderRadius .zero,
170175 trailing: Switch (
171176 value: value,
172177 onChanged: (value) => _toggleOfflineMode (context, value),
@@ -182,6 +187,9 @@ class SettingsPage extends StatelessWidget {
182187 context.l10n! .automaticUpdateChecks,
183188 FluentIcons .arrow_sync_24_regular,
184189 description: context.l10n! .automaticUpdateChecksDescription,
190+ borderRadius: offlineMode.value
191+ ? commonCustomBarRadiusLast
192+ : BorderRadius .zero,
185193 trailing: Switch (
186194 value: value ?? false ,
187195 onChanged: (value) =>
You can’t perform that action at this time.
0 commit comments