feat(chat): refactor button

This commit is contained in:
mso7nueh
2024-08-16 17:58:44 +03:00
parent 9ff0d09acc
commit 23c28df73d

View File

@@ -175,14 +175,17 @@ class _ChatScreenState extends State<ChatScreen> {
// User canceled the picker // User canceled the picker
} }
}, },
borderRadius: BorderRadius.circular(16), customBorder: CircleBorder(),
child: Ink( child: Ink(
height: 32, height: 32,
width: 32, width: 32,
child: Icon( child: Transform.rotate(
Icons.attach_file_rounded, angle: 3.8,
size: 28, child: Icon(
color: Color(0xFF858E99), Icons.attach_file_rounded,
size: 24,
color: Color(0xFF858E99),
),
), ),
), ),
), ),
@@ -232,7 +235,7 @@ class _ChatScreenState extends State<ChatScreen> {
), ),
SizedBox(width: 8), SizedBox(width: 8),
InkWell( InkWell(
borderRadius: BorderRadius.circular(16), customBorder: CircleBorder(),
onTap: () { onTap: () {
if (textEditingController.text.isNotEmpty) { if (textEditingController.text.isNotEmpty) {
context.read<ChatRoomCubit>().sendMessage( context.read<ChatRoomCubit>().sendMessage(
@@ -245,12 +248,16 @@ class _ChatScreenState extends State<ChatScreen> {
} }
}, },
child: Ink( child: Ink(
decoration: BoxDecoration(
color: appTheme.blueA400,
shape: BoxShape.circle,
),
height: 32, height: 32,
width: 32, width: 32,
child: Icon( child: Icon(
Icons.send_outlined, Icons.arrow_upward_rounded,
size: 28, size: 20,
color: Color(0xFF858E99), color: Colors.white,
), ),
), ),
), ),