mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 00:59:28 +01:00
29 lines
588 B
Dart
29 lines
588 B
Dart
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...'),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|