initial home view

This commit is contained in:
Mohammad Salameh
2024-02-14 11:25:23 +03:00
parent 84e142a099
commit 34517bdfff
+40 -7
View File
@@ -9,13 +9,46 @@ class HomeView extends StatelessWidget {
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (BuildContext context) => SceneProvider(),
builder: (context, child) => _buildPage(context),
builder: (context, child) => Scaffold(
appBar: AppBar(
title: const Text('Syncrow'),
),
body: const Center(
child: Text('Home'),
),
bottomNavigationBar: BottomNavigationBar(
items: const [
BottomNavigationBarItem(
icon: Icon(
Icons.home_outlined,
color: Colors.grey,
),
label: 'Home',
),
BottomNavigationBarItem(
icon: Icon(
Icons.view_in_ar,
color: Colors.grey,
),
label: 'Scene',
),
BottomNavigationBarItem(
icon: Icon(
Icons.smart_toy_outlined,
color: Colors.grey,
),
label: 'Smart',
),
BottomNavigationBarItem(
icon: Icon(
Icons.account_circle,
color: Colors.grey,
),
label: 'Account',
),
],
),
),
);
}
Widget _buildPage(BuildContext context) {
final provider = context.read<SceneProvider>();
return Container();
}
}