transition on each page

This commit is contained in:
2023-11-26 08:08:48 -03:00
parent e2c2fa48ce
commit 8524e81a76
4 changed files with 49 additions and 3 deletions
+10 -3
View File
@@ -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),
));
}
}