Created
October 13, 2022 15:56
-
-
Save omarzer0/4161c2f5932176b9dfd884237b2640e6 to your computer and use it in GitHub Desktop.
Third session for flutter in Roqay
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
// ignore_for_file: prefer_const_constructors | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: DefaultTabController( | |
length: 4, | |
initialIndex: 1, | |
child: Scaffold( | |
appBar: AppBar( | |
backgroundColor: Color(0xff006559), | |
title: Text("Whatsapp"), | |
actions: [ | |
IconButton(onPressed: () {}, icon: Icon(Icons.search)), | |
IconButton(onPressed: () {}, icon: Icon(Icons.more_vert)), | |
], | |
bottom: TabBar( | |
indicator: UnderlineTabIndicator( | |
borderSide: BorderSide(width: 3.0, color: Colors.white)), | |
tabs: const [ | |
Tab(icon: Icon(Icons.camera_alt)), | |
Tab(text: "CHATS"), | |
Tab(text: "STATUS"), | |
Tab(text: "CALLS"), | |
], | |
), | |
), | |
floatingActionButton: FloatingActionButton( | |
onPressed: () {}, | |
backgroundColor: Color(0xff006559), | |
child: Icon(Icons.message), | |
), | |
body: TabBarView( | |
children: [ | |
Icon(Icons.camera_alt), | |
ListView( | |
children: [ | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
ListTile( | |
leading: CircleAvatar( | |
radius: 25, | |
backgroundColor: Colors.red, | |
backgroundImage: AssetImage("images/talion.jpg"), | |
), | |
title: Text("Talion"), | |
subtitle: Text("Middle earth shadow of war"), | |
trailing: Icon(Icons.more_vert), | |
onTap: () {}, | |
), | |
], | |
), | |
Icon(Icons.signal_wifi_statusbar_4_bar), | |
Icon(Icons.call), | |
], | |
), | |
), | |
), | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment