Skip to content

Commit

Permalink
Adding Side Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Rody Davis committed Mar 14, 2019
1 parent ea81674 commit a53a1a0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
25 changes: 23 additions & 2 deletions lib/ui/app/app_side_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,29 @@ class AppSideMenu extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[],
return SafeArea(
child: Column(
children: <Widget>[
IconButton(
icon: Icon(Icons.menu),
onPressed: () {
Scaffold.of(context).openDrawer();
},
),
IconButton(
icon: Icon(Icons.inbox),
onPressed: () {},
),
IconButton(
icon: Icon(Icons.people_outline),
onPressed: () {},
),
IconButton(
icon: Icon(Icons.star_border),
onPressed: () {},
),
],
),
);
}
}
3 changes: 2 additions & 1 deletion lib/ui/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ class _HomeScreenState extends State<HomeScreen> {
super.initState();
}

final Size _tabletBreakpoint = Size(480.0, 480.0);
final Size _tabletBreakpoint = Size(510.0, 510.0);

@override
Widget build(BuildContext context) {
final bool _tablet = isTablet(context, breakpoint: _tabletBreakpoint);
return ResponsiveScaffold.builder(
tabletBreakpoint: _tabletBreakpoint,
detailBuilder: (BuildContext context, int index) {
final i = _emails[index];
return DetailsScreen(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ packages:
name: floating_search_bar
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
version: "0.1.3"
flutter:
dependency: "direct main"
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
sdk: flutter
cupertino_icons: ^0.1.2
responsive_scaffold: ^0.0.2
floating_search_bar: ^0.1.2
floating_search_bar: ^0.1.3
intl: ^0.15.7
flutter_markdown: ^0.2.0

Expand Down

0 comments on commit a53a1a0

Please sign in to comment.