Files
PotatoMessenger/client/lib/widgets/chatItem.dart
fegor101 210b59f8ed add main menu interface
- MainMenu
 - ChatItem (Widget)
 - ChatFolder (Widget)
 - ChatFolders (Widget)
 - ColorTheme
2026-04-10 12:43:08 +03:00

33 lines
887 B
Dart

import 'dart:io';
import 'package:flutter/material.dart';
class ChatItem extends StatelessWidget{
ChatItem({super.key, });
@override
Widget build(BuildContext context) {
return SizedBox(
width: double.infinity,
height: 80,
child: TextButton(
onPressed: () => print('CHAT'),
style: ButtonStyle(
backgroundColor: WidgetStatePropertyAll(Theme.of(context).colorScheme.onSecondary),
shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.zero)))
),
child: Padding(
padding: EdgeInsetsGeometry.all(5),
child: Row(
children: [
Icon(Icons.person, size: 60,),
SizedBox(width: 10,),
Text('Название', style: TextStyle(fontSize: 18),)
],
)
)
),
);
}
}