improve buttons

This commit is contained in:
otsmr 2026-06-05 11:01:20 +02:00
parent 34ecb66e0b
commit 92b615959b

View file

@ -311,34 +311,33 @@ class _ChatListViewState extends State<ChatListView> {
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
Material( FloatingActionButton(
elevation: 3, heroTag: 'qrcode_fab',
shape: const CircleBorder(), elevation: 2,
color: context.color.primary, backgroundColor: isDarkMode(context)
child: InkWell( ? Colors.grey[800]
borderRadius: BorderRadius.circular(12), : Colors.grey[200],
onTap: () => context.push(Routes.settingsPublicProfile), foregroundColor: isDarkMode(context)
child: SizedBox( ? Colors.white
width: 45, : Colors.black87,
height: 45, onPressed: () => context.push(Routes.settingsPublicProfile),
child: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.qrcode, FontAwesomeIcons.qrcode,
color: isDarkMode(context) color: isDarkMode(context)
? Colors.black ? Colors.white
: Colors.white, : Colors.black87,
),
),
),
), ),
), ),
const SizedBox(height: 12), const SizedBox(height: 12),
FloatingActionButton( FloatingActionButton(
backgroundColor: context.color.primary, heroTag: 'new_chat_fab',
elevation: 2,
backgroundColor: primaryColor,
foregroundColor: Colors.black87,
onPressed: () => context.push(Routes.chatsStartNewChat), onPressed: () => context.push(Routes.chatsStartNewChat),
child: FaIcon( child: const FaIcon(
FontAwesomeIcons.penToSquare, FontAwesomeIcons.penToSquare,
color: isDarkMode(context) ? Colors.black : Colors.white, color: Colors.black87,
), ),
), ),
], ],