transition on each page
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:routefly/routefly.dart';
|
||||
|
||||
class NcBasePage extends StatelessWidget {
|
||||
const NcBasePage({super.key, required this.body});
|
||||
@@ -8,8 +9,14 @@ class NcBasePage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: const Color(0xffa600f9),
|
||||
body: body,
|
||||
);
|
||||
backgroundColor: const Color(0xffa600f9),
|
||||
body: body,
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () => {
|
||||
Routefly.navigate('/'),
|
||||
},
|
||||
backgroundColor: Colors.white,
|
||||
child: const Icon(Icons.home),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user