Files
Redesnigned-Finamp/lib/screens/layout_settings_screen.dart
T
Zakaria d0ca84d8d2
Build / Build for Android (push) Has been cancelled
Build / Build for iOS (push) Has been cancelled
redesign app phase 1
2026-05-18 14:34:41 -04:00

44 lines
1.7 KiB
Dart

import 'package:flutter/material.dart';
import 'package:finamp/l10n/app_localizations.dart';
import '../components/LayoutSettingsScreen/theme_selector.dart';
import 'tabs_settings_screen.dart';
import '../components/LayoutSettingsScreen/content_grid_view_cross_axis_count_list_tile.dart';
import '../components/LayoutSettingsScreen/content_view_type_dropdown_list_tile.dart';
import '../components/LayoutSettingsScreen/show_text_on_grid_view_selector.dart';
import '../components/LayoutSettingsScreen/show_cover_as_player_background_selector.dart';
import '../components/LayoutSettingsScreen/hide_song_artists_if_same_as_album_artists_selector.dart';
class LayoutSettingsScreen extends StatelessWidget {
const LayoutSettingsScreen({Key? key}) : super(key: key);
static const routeName = "/settings/layout";
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(AppLocalizations.of(context)!.layoutAndTheme),
),
body: ListView(
children: [
const ContentViewTypeDropdownListTile(),
for (final type in ContentGridViewCrossAxisCountType.values)
ContentGridViewCrossAxisCountListTile(type: type),
const ShowTextOnGridViewSelector(),
const ShowCoverAsPlayerBackgroundSelector(),
const HideSongArtistsIfSameAsAlbumArtistsSelector(),
const ThemeSelector(),
const Divider(),
ListTile(
leading: const Icon(Icons.tab),
title: Text(AppLocalizations.of(context)!.tabs),
onTap: () =>
Navigator.of(context).pushNamed(TabsSettingsScreen.routeName),
),
],
),
);
}
}