|
@@ -1,8 +1,8 @@
|
|
|
import 'package:flutter/material.dart';
|
|
|
+import 'package:turquessa_mesas_hoster/utils/widgets/custom_appbar.dart';
|
|
|
import '../../../utils/widgets/widgets.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:provider/provider.dart';
|
|
|
-
|
|
|
import '../../../utils/themes.dart';
|
|
|
|
|
|
class HomeScreen extends StatefulWidget {
|
|
@@ -20,20 +20,57 @@ class Formulario extends State<HomeScreen> {
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
+ var _selectedIndex;
|
|
|
return Scaffold(
|
|
|
backgroundColor: Colors.grey.shade200,
|
|
|
appBar: AppBar(
|
|
|
- title: Text(
|
|
|
- 'Inicio',
|
|
|
- style: TextStyle(color: AppTheme.secondary),
|
|
|
- ),
|
|
|
- iconTheme: IconThemeData(color: AppTheme.secondary),
|
|
|
+ title: const CustomAppbar(),
|
|
|
),
|
|
|
- body: const Center(
|
|
|
- child: Image(
|
|
|
- image: AssetImage('assets/logo.png'),
|
|
|
- height: 200,
|
|
|
- ),
|
|
|
+ body: Row(
|
|
|
+ children: [
|
|
|
+ NavigationRail(
|
|
|
+ backgroundColor: Color.fromARGB(255, 25, 30, 41),
|
|
|
+ selectedIndex: _selectedIndex,
|
|
|
+ onDestinationSelected: (int index) {
|
|
|
+ setState(() {
|
|
|
+ _selectedIndex = index;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ labelType: NavigationRailLabelType.all,
|
|
|
+ destinations: const [
|
|
|
+ NavigationRailDestination(
|
|
|
+ icon: Icon(Icons.home, color: Colors.white),
|
|
|
+ selectedIcon: Icon(Icons.home_filled),
|
|
|
+ label: Text('Inicio'),
|
|
|
+ ),
|
|
|
+ NavigationRailDestination(
|
|
|
+ icon: Icon(Icons.search),
|
|
|
+ selectedIcon: Icon(
|
|
|
+ Icons.search_rounded,
|
|
|
+ color: Colors.white,
|
|
|
+ ),
|
|
|
+ label: Text('Buscar'),
|
|
|
+ ),
|
|
|
+ NavigationRailDestination(
|
|
|
+ icon: Icon(Icons.settings),
|
|
|
+ selectedIcon: Icon(Icons.settings_rounded, color: Colors.white),
|
|
|
+ label: Text('Ajustes'),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ const Expanded(
|
|
|
+ child: Center(
|
|
|
+ child: Padding(padding: EdgeInsets.symmetric(vertical: 10)
|
|
|
+ // child: GridView,
|
|
|
+ )
|
|
|
+
|
|
|
+ // child: Image(
|
|
|
+ // image: AssetImage('assets/logo.png'),
|
|
|
+ // height: 400,
|
|
|
+ // ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
);
|
|
|
}
|