add main menu interface

- MainMenu
 - ChatItem (Widget)
 - ChatFolder (Widget)
 - ChatFolders (Widget)
 - ColorTheme
This commit is contained in:
2026-04-10 12:43:08 +03:00
parent 28f4e6b0ef
commit 210b59f8ed
11 changed files with 632 additions and 121 deletions

View File

@@ -0,0 +1,32 @@
import 'dart:io';
import 'package:flutter/material.dart';
class ChatFolder extends StatelessWidget{
Icon ?icon;
Icon iconn = Icon(Icons.folder, size: 50,);
String name;
ChatFolder({super.key, this.icon, required this.name}){
icon ??= Icon(Icons.folder);
iconn = Icon(icon?.icon, size: 50,);
}
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.fromLTRB(5, 2, 5, 2),
child: TextButton(
onPressed: () => print(name),
style: ButtonStyle(foregroundColor: WidgetStatePropertyAll(Theme.of(context).colorScheme.onSurface)),
child:
Row(
children: [
?icon,
SizedBox(width: 2,),
Text(name, style: TextStyle(fontSize: 18),)
],
),
)
);
}
}