subtracks/lib/app/screens/root_shell_screen.dart
2025-11-03 10:35:44 +09:00

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...'),
),
),
),
);
}
}