- MainMenu - ChatItem (Widget) - ChatFolder (Widget) - ChatFolders (Widget) - ColorTheme
59 lines
1.7 KiB
Dart
59 lines
1.7 KiB
Dart
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(),
|
|
]
|
|
),
|
|
),
|
|
)
|
|
],
|
|
),
|
|
|
|
);
|
|
}
|
|
|
|
} |