Skip to content

Commit

Permalink
small visual tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RedyAu committed Nov 23, 2024
1 parent 2213f0d commit 7f273e4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
31 changes: 19 additions & 12 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class LyricApp extends StatelessWidget {
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
debugShowCheckedModeBanner: false,
);
}
}
Expand All @@ -68,21 +69,27 @@ final _router = GoRouter(
routes: [
GoRoute(
path: '/home',
pageBuilder: (context, state) => const MaterialPage(
child: HomePage(),
),
pageBuilder: (context, state) {
return const MaterialPage(
child: HomePage(),
);
},
),
GoRoute(
path: '/bank',
pageBuilder: (context, state) => const MaterialPage(
child: SongsPage(),
),
pageBuilder: (context, state) {
return const MaterialPage(
child: SongsPage(),
);
},
),
GoRoute(
path: '/sets',
pageBuilder: (context, state) => const MaterialPage(
child: SetsPage(),
),
pageBuilder: (context, state) {
return const MaterialPage(
child: SetsPage(),
);
},
),
GoRoute(
path: '/song/:uuid',
Expand All @@ -94,9 +101,9 @@ final _router = GoRouter(
},
),
GoRoute(
path: '/cue/:id',
pageBuilder: (context, state) {
final cueId = int.parse(state.pathParameters['id']!);
path: '/cue/:id',
pageBuilder: (context, state) {
final cueId = int.parse(state.pathParameters['id']!);
int? slideIndex = int.tryParse(state.uri.queryParameters['index'] ?? 'ignoreMe');
return MaterialPage(
child: CuePage(
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/base/cues/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class _SetsPageState extends ConsumerState<SetsPage> {
floatingActionButton: FloatingActionButton.extended(
onPressed: () {},
label: Text('Új lista'),
icon: Icon(Icons.playlist_add),
icon: Icon(Icons.add_box_outlined),
),
body: switch (cues) {
AsyncError(:final error, :final stackTrace) => Center(
Expand Down
1 change: 1 addition & 0 deletions lib/ui/song/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class _SongPageState extends ConsumerState<SongPage> {

return LayoutBuilder(builder: (context, constraints) {
return Scaffold(
backgroundColor: Theme.of(context).indicatorColor,
appBar: AppBar(
leading: IconButton(
icon: const Icon(Icons.arrow_back),
Expand Down
6 changes: 4 additions & 2 deletions lib/ui/song/sheet/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ class SheetView extends ConsumerWidget {
final bank = ref.watch(bankOfSongProvider(song));
switch (bank) {
case AsyncLoading():
return CircularProgressIndicator(
value: 0.5,
return Center(
child: CircularProgressIndicator(
value: 0.5,
),
);
case AsyncError(:final error, :final stackTrace):
return Center(
Expand Down

0 comments on commit 7f273e4

Please sign in to comment.