// import 'package:cssd/pages/test_result_screen.dart'; import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import '../../config/routes.dart'; class AppDrawer extends StatelessWidget { @override Widget build(BuildContext context) { return SafeArea( child: SizedBox( width: 250, child: Drawer( child: Container( padding: EdgeInsets.all(20), decoration: BoxDecoration( color: Colors.black, ), child: Column( children: [ ListTile( leading: CircleAvatar( backgroundColor: Colors.white, ), title: Text( 'CSSD', style: TextStyle( color: Colors.white, ), ), ), Divider( color: Colors.white, ), InkWell( onTap: () => Navigator.of(context).pushNamed(Routes.myInfoScreen), child: Container( padding: EdgeInsets.symmetric(vertical: 5, horizontal: 15), margin: EdgeInsets.only(top: 10), decoration: BoxDecoration( gradient: LinearGradient(colors: [Colors.blue, Colors.green]), borderRadius: BorderRadius.circular(5), ), child: Row( children: [ Icon( Icons.person_outline, color: Colors.white, ), SizedBox( width: 10, ), Text( 'My Info', style: TextStyle( color: Colors.white, ), ) ], ), ), ), InkWell( onTap: () => Navigator.of(context).pushNamed(Routes.testResultScreen), child: Container( padding: EdgeInsets.symmetric(vertical: 5, horizontal: 15), margin: EdgeInsets.only(top: 10), decoration: BoxDecoration( borderRadius: BorderRadius.circular(5), ), child: Row( children: [ Icon( Icons.assignment, color: Colors.white, ), SizedBox( width: 10, ), Text( 'Test Results', style: TextStyle( color: Colors.white, ), ) ], ), ), ), InkWell( onTap: () { Navigator.of(context).pushNamed(Routes.labelResultScreen); }, child: Container( padding: EdgeInsets.symmetric(vertical: 5, horizontal: 15), margin: EdgeInsets.only(top: 10), decoration: BoxDecoration( borderRadius: BorderRadius.circular(5), ), child: Row( children: [ Icon( FontAwesomeIcons.tag, color: Colors.white, ), SizedBox( width: 10, ), Text( 'Labels', style: TextStyle( color: Colors.white, ), ) ], ), ), ), InkWell( onTap: () { Navigator.of(context).pushNamed(Routes.cycleResultScreen); }, child: Container( padding: EdgeInsets.symmetric(vertical: 5, horizontal: 15), margin: EdgeInsets.only(top: 10), decoration: BoxDecoration( borderRadius: BorderRadius.circular(5), ), child: Row( children: [ Icon( Icons.refresh, color: Colors.white, ), SizedBox( width: 10, ), Text( 'Circles', style: TextStyle( color: Colors.white, ), ) ], ), ), ), Container( margin: EdgeInsets.only(left: 20), child: ListTile( leading: Icon(Icons.phone_bluetooth_speaker), title: Text('All Test Result'), dense: true, ), ), Container( margin: EdgeInsets.only(left: 20), child: ListTile( leading: Icon(Icons.settings), title: Text('Manage Users'), dense: true, ), ), Container( margin: EdgeInsets.only(left: 20), child: ListTile( leading: Icon(Icons.label), title: Text('Manage Medical Center'), dense: true, ), ), ], ), ), elevation: 0, ), ), ); } }