add main menu interface
- MainMenu - ChatItem (Widget) - ChatFolder (Widget) - ChatFolders (Widget) - ColorTheme
This commit is contained in:
59
client/lib/screens/mainMenu.dart
Normal file
59
client/lib/screens/mainMenu.dart
Normal file
@@ -0,0 +1,59 @@
|
||||
import 'package:client/widgets/chatFoloders.dart';
|
||||
import 'package:client/widgets/chatItem.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class MainMenu extends StatelessWidget{
|
||||
const MainMenu({Key ?key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final colors = Theme.of(context).colorScheme;
|
||||
return Scaffold(
|
||||
backgroundColor: colors.surface,
|
||||
appBar: AppBar(
|
||||
backgroundColor: colors.surfaceBright,
|
||||
leading: IconButton(onPressed: () => print("Side menu"), icon: Icon(Icons.dehaze)),
|
||||
title: Text("Potato messenger"),
|
||||
actions: [
|
||||
IconButton(onPressed: () => print('New'), icon: Icon(Icons.add)),
|
||||
IconButton(onPressed:() => print("Search"), icon: Icon(Icons.search)),
|
||||
|
||||
],
|
||||
),
|
||||
body: Column(
|
||||
|
||||
children: [
|
||||
ChatFoloders(),
|
||||
Expanded(
|
||||
child: SingleChildScrollView(
|
||||
scrollDirection: Axis.vertical,
|
||||
child: Column(
|
||||
children: [
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
ChatItem(),
|
||||
]
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user