-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
134 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:font_awesome_flutter/font_awesome_flutter.dart'; | ||
|
||
class MainDrawer extends StatelessWidget { | ||
const MainDrawer({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Drawer( | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.stretch, | ||
children: [ | ||
const SizedBox( | ||
height: 30, | ||
), | ||
ListTile( | ||
leading: FaIcon( | ||
FontAwesomeIcons.penToSquare, | ||
size: 20, | ||
), | ||
title: Text('New chat'), | ||
minLeadingWidth: 10, | ||
onTap: () {}, | ||
), | ||
Expanded( | ||
child: ListView( | ||
padding: EdgeInsets.zero, | ||
children: [ | ||
ListTile( | ||
title: Text('ChatGPT Flutter App'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('GraphQL in Flutter'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('REST API Explanation'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('Jitsi Meet in Flutter'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('Websockets in Flutter'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('ChatGPT Flutter App'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('GraphQL in Flutter'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('REST API Explanation'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('Jitsi Meet in Flutter'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('Websockets in Flutter'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('ChatGPT Flutter App'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('GraphQL in Flutter'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('REST API Explanation'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('Jitsi Meet in Flutter'), | ||
onTap: () {}, | ||
), | ||
ListTile( | ||
title: Text('Websockets in Flutter'), | ||
onTap: () {}, | ||
), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import 'package:boilerplate/core/widgets/main_app_bar.dart'; | ||
import 'package:boilerplate/core/widgets/main_drawer.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class HomeScreen extends StatelessWidget { | ||
const HomeScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: PreferredSize( | ||
preferredSize: Size.fromHeight(60), | ||
child: MainAppBar(), | ||
), | ||
drawer: MainDrawer(), | ||
); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
lib/presentation/home/home.dart → lib/presentation/home_demo/home.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters