You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/widgets/shared/drawer_item_widget.dart

47 lines
1.1 KiB
Dart

import 'dart:ui';
6 years ago
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:flutter/material.dart';
6 years ago
import '../shared/app_texts_widget.dart';
// OWNER : Ibrahim albitar
// DATE : 08-04-2020
// DESCRIPTION : Custom Drawer item for app.
class DrawerItem extends StatefulWidget {
6 years ago
final String title;
final IconData icon;
DrawerItem(this.title, this.icon);
@override
_DrawerItemState createState() => _DrawerItemState();
}
class _DrawerItemState extends State<DrawerItem> {
@override
Widget build(BuildContext context) {
6 years ago
return Container(
margin: EdgeInsets.only(top: 5, bottom: 5, left: 10, right: 10),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Icon(
widget.icon,
color: Colors.white,
size: SizeConfig.imageSizeMultiplier * 7,
),
AppText(
widget.title,
color: Colors.white,
fontWeight: FontWeight.bold,
margin: 10,
fontSize: SizeConfig.textMultiplier * 2.5,
),
],
));
}
6 years ago
}