mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-06-13 13:02:13 +00:00
improve buttons
This commit is contained in:
parent
34ecb66e0b
commit
92b615959b
1 changed files with 21 additions and 22 deletions
|
|
@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue