23 lines
573 B
Dart
23 lines
573 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:routefly/routefly.dart';
|
|
|
|
class NcBasePage extends StatelessWidget {
|
|
const NcBasePage({super.key, required this.body});
|
|
|
|
final Widget body;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: const Color(0xffa600f9),
|
|
body: body,
|
|
floatingActionButton: FloatingActionButton(
|
|
onPressed: () => {
|
|
Routefly.navigate('/'),
|
|
},
|
|
backgroundColor: Colors.white,
|
|
child: const Icon(Icons.home),
|
|
));
|
|
}
|
|
}
|