mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
reorg ui into app
This commit is contained in:
28
lib/app/screens/root_shell_screen.dart
Normal file
28
lib/app/screens/root_shell_screen.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
class RootShellScreen extends StatelessWidget {
|
||||
const RootShellScreen({
|
||||
super.key,
|
||||
required this.child,
|
||||
});
|
||||
|
||||
final Widget child;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: child,
|
||||
bottomNavigationBar: BottomAppBar(
|
||||
child: Center(
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
context.push('/now-playing');
|
||||
},
|
||||
child: Text('Now playing...'),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user