12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
-
- import 'package:flutter_login/flutter_login.dart';
- import 'package:flutter/material.dart';
- import 'package:google_fonts/google_fonts.dart';
- import 'register.dart';
- import 'welcome.dart';
- import 'profileinfo.dart';
- import 'appointments.dart';
- import 'package:http/http.dart' as http;
- import 'OfficeScreen.dart';
- import 'Offices.dart';
- import 'package:fast_med_flutter/routes/home.dart';
-
-
- class NavigationPage extends StatefulWidget{
-
- NavigationPage({Key key, this.title}) : super(key: key);
- final String title;
-
- @override
- _NavigationPageState createState() => _NavigationPageState();
- }
-
- class _NavigationPageState extends State<NavigationPage>{
-
-
- int _selectedIndex = 0;
-
- static const TextStyle optionStyle = TextStyle(fontSize: 30, fontWeight: FontWeight.bold);
-
- final _pageOptions = [
- OfficesScreen(),
- ProfilePage(),
- Home()
- ];
-
- // static const List<Navigator> _widgetOptions = <Navigator>[
- // // Navigator.push(
- // // context, MaterialPageRoute(builder: (context) => ProfilePage()));
- // ];
-
-
- // void _onItemTapped(int index) {
- // setState(() {
- // _selectedIndex = index;
- // });
- // }
- @override
- Widget build(BuildContext context) {
- final height = MediaQuery.of(context).size.height;
- return Scaffold(
- // appBar: AppBar(
- // title: Text("Title"),
- // ),
- body: _pageOptions[_selectedIndex],
- bottomNavigationBar: BottomNavigationBar(
- onTap: (int index){
- setState(() {
- _selectedIndex = index;
- });
- },
- selectedItemColor: Colors.red[800],
- currentIndex: _selectedIndex,
- // onTap: ,
- // currentIndex: ,
- // selectedItemColor: Colors.red, onTap: ,
- //
-
- items: [
- BottomNavigationBarItem(icon: Icon(Icons.medical_services),
- label: 'FastMed'),
- BottomNavigationBarItem(icon: Icon(Icons.person_rounded),
- label: 'Profile'),
- BottomNavigationBarItem(icon: Icon(Icons.event_note_rounded),
- label: 'Appointments')
- ],
-
- ),
- // body: Container(
- //
- // ),
- );
- // TODO: implement build
- throw UnimplementedError();
- }
-
-
- }
|