123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- 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<HomeScreen> {
- @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,
- // ),
- ),
- ),
- ],
- ),
- );
- }
- }
|