class Home extends StatefulWidget {
HomeState createState() => HomeState();
}
class HomeState extends State<Home> {
final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();
var dateNow = new DateTime.now();
Icon customIcon = const Icon(Icons.search);
Icon customMessages = const Icon(Icons.message);
Widget customSearchBar = const Text('search');
List<Map<String, dynamic>> todos = [];
List<page> display_list = List.from(main_search);
static List<page> main_search = [];
void updateList(String value){
}
final DescriptionController = TextEditingController();
int _currentIndex = 3;
Color butt = Colors.pink;
@override
Widget build(BuildContext context) {
return DefaultTabController(
length: 3,
child: MaterialApp(
theme: ThemeData(fontFamily: 'Harmattan',),
home: Scaffold(
key: _scaffoldKey,
appBar: AppBar(
backgroundColor: Colors.lightBlue,
// elevation: 0,
title: Text(
"faceMe",
style: TextStyle(
color: Colors.white,
fontSize: 26,
fontWeight: FontWeight.bold,
),),
automaticallyImplyLeading: false,
actions: [
IconButton(
**_[onPressed: () {
Navigator.of(context).push(MaterialPageRoute(
builder: (_) => CountrySearch(
title: 'Country List',
)));
},](url)_**
icon: customIcon,
color: Colors.white,
),
IconButton(
onPressed: () {
const chatroom();
},
icon: customMessages,
color: Colors.white, )
],
centerTitle: true,
),
body: ListView(
children: [
SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
StatusSection(),
Divider(
thickness: 1,
color: Colors.grey[300],
),
HeaderButtonSection(
buttonOne: headerbutton(
buttontext: "Live",
buttonicon: Icons.video_call,
buttonaction: () {
},
buttoncolor: Colors.red),
buttonTwo: headerbutton(
buttontext: "Photos",
buttonicon: Icons.photo_library,
buttonaction: () {
},
buttoncolor: Colors.green),
buttonThree: headerbutton(
buttontext: "Room",
buttonicon: Icons.video_call,
buttonaction: () {
const record();
},
buttoncolor: Colors.purple)),
Divider(
thickness: 10,
color: Colors.grey[300],
),
Room(),
Divider(
thickness: 10,
color: Colors.grey[300],
),
StorySection(),
Divider(
thickness: 10,
color: Colors.grey[300],
),
PostCard(
varifiedpost: true,
pics: ylw,
name: "Spiderman",
time: "4h",
postImage: bat,
postTitle: "hay gorgeous",
like: "15K",
comments: "2K",
share: "432",
),
Divider(
thickness: 10,
color: Colors.grey[300],
),
PostCard(
varifiedpost: true,
pics: bat,
name: "Batman",
time: "8h",
postImage: sup,
postTitle: "yoo bud",
like: "30K",
comments: "2K",
share: "344",
),
Divider(
thickness: 10,
color: Colors.grey[300],
),
PostCard(
varifiedpost: true,
pics: red,
name: "Scarlett",
time: "4h",
postImage: bat,
postTitle: " I am scarlett,",
like: "15K",
comments: "2K",
share: "232",
),
Divider(
thickness: 10,
color: Colors.grey[300],
),
SuggestionSection(),
Divider(
thickness: 10,
color: Colors.grey[300],
),
PostCard(
varifiedpost: true,
pics: haf,
name: "Batman",
time: "8h",
postImage: sup,
postTitle:
"yooo dude how are you man..",
like: "15K",
comments: "2K",
share: "211",
),
],
),
),
],),
bottomNavigationBar: BottomNavigationBar(
currentIndex: _currentIndex,
items: [
BottomNavigationBarItem(
icon: Icon(Icons.home, color: Colors.blueAccent),
label: "",
backgroundColor: Colors.white),
BottomNavigationBarItem(
icon: Icon(Icons.person, color: Colors.grey[700]),
label: "",
backgroundColor: Colors.white),
BottomNavigationBarItem(
icon: Icon(Icons.settings, color: Colors.grey[700]),
label: "",
backgroundColor: Colors.white),
BottomNavigationBarItem(
icon: Icon(Icons.notifications, color: Colors.grey[700]),
label: "",
backgroundColor: Colors.white),
BottomNavigationBarItem(
icon: Icon(Icons.more_vert_outlined, color: Colors.grey[700]),
label: "",
backgroundColor: Colors.white),
],
onTap: (index) {
setState(() {
_currentIndex = index;
});
},
),
),
),
);
}
}
class record extends StatefulWidget {
const record({Key? key}) : super(key: key);
@override
State<record> createState() => _recordState();
}
class _recordState extends State<record> {
@override
Widget build(BuildContext context) {
return ListWheelScrollView(itemExtent: 2, children: [
Container(
child: Image (image: AssetImage("assetsm1.jpg/"),
),
),
Divider(
thickness: 10,
color: Colors.black,
),
Container(
![git hub](https://user-images.githubusercontent.com/38753427/199269151-73a58b2a-43b9-430b-b789-ceeb3ef0097c.jpg)
![github](https://user-images.githubusercontent.com/38753427/199269160-a55f7579-1433-4c10-a12c-42792c35299e.jpg)
child: Image (image: AssetImage("assetsw1.jpg/"),
),
),
Divider(
thickness: 10,
color: Colors.black,
),
]);
}
}