mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-24 21:37:55 +00:00
55 lines
1.4 KiB
Dart
55 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:syncrow_app/features/home/provider/provider.dart';
|
|
|
|
class HomeView extends StatelessWidget {
|
|
const HomeView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ChangeNotifierProvider(
|
|
create: (BuildContext context) => SceneProvider(),
|
|
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',
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|