- MainMenu - ChatItem (Widget) - ChatFolder (Widget) - ChatFolders (Widget) - ColorTheme
33 lines
887 B
Dart
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),)
|
|
],
|
|
)
|
|
)
|
|
),
|
|
);
|
|
}
|
|
} |