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 { const HomeScreen({super.key}); @override Formulario createState() => Formulario(); } class Formulario extends State { @override void initState() { super.initState(); } @override Widget build(BuildContext context) { var _selectedIndex; return Scaffold( backgroundColor: Colors.grey.shade200, appBar: AppBar( title: const CustomAppbar(), ), 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, // ), ), ), ], ), ); } }