mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-09-21 04:54:43 -04:00
ui cleanup
This commit is contained in:
parent
e4358586aa
commit
23867a1784
17 changed files with 135 additions and 90 deletions
|
@ -4,9 +4,12 @@ import 'package:flutter_svg/flutter_svg.dart';
|
|||
|
||||
class DefaultAppBar extends AppBar {
|
||||
DefaultAppBar(
|
||||
{required super.title, super.key, Widget? leading, super.actions})
|
||||
{super.title,
|
||||
super.flexibleSpace,
|
||||
super.key,
|
||||
Widget? leading,
|
||||
super.actions})
|
||||
: super(
|
||||
titleSpacing: 0,
|
||||
leading: leading ??
|
||||
Container(
|
||||
margin: const EdgeInsets.all(4),
|
||||
|
@ -14,6 +17,6 @@ class DefaultAppBar extends AppBar {
|
|||
color: Colors.black.withAlpha(32),
|
||||
shape: BoxShape.circle),
|
||||
child:
|
||||
SvgPicture.asset('assets/images/vlogo.svg', height: 32)
|
||||
SvgPicture.asset('assets/images/vlogo.svg', height: 24)
|
||||
.paddingAll(4)));
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ class _HomeAccountReadyState extends State<HomeAccountReady> {
|
|||
color: scaleConfig.preferBorders
|
||||
? scale.primaryScale.border
|
||||
: scale.primaryScale.borderText,
|
||||
constraints: const BoxConstraints.expand(height: 48, width: 48),
|
||||
constraints: const BoxConstraints.expand(height: 40, width: 40),
|
||||
style: ButtonStyle(
|
||||
backgroundColor: WidgetStateProperty.all(
|
||||
scaleConfig.preferBorders
|
||||
|
@ -50,7 +50,7 @@ class _HomeAccountReadyState extends State<HomeAccountReady> {
|
|||
: scale.primaryScale.borderText,
|
||||
width: 2),
|
||||
borderRadius: BorderRadius.all(
|
||||
Radius.circular(12 * scaleConfig.borderRadiusScale))),
|
||||
Radius.circular(8 * scaleConfig.borderRadiusScale))),
|
||||
)),
|
||||
tooltip: translate('menu.accounts_menu_tooltip'),
|
||||
onPressed: () async {
|
||||
|
@ -68,7 +68,7 @@ class _HomeAccountReadyState extends State<HomeAccountReady> {
|
|||
color: scaleConfig.preferBorders
|
||||
? scale.primaryScale.border
|
||||
: scale.primaryScale.borderText,
|
||||
constraints: const BoxConstraints.expand(height: 48, width: 48),
|
||||
constraints: const BoxConstraints.expand(height: 40, width: 40),
|
||||
style: ButtonStyle(
|
||||
backgroundColor: WidgetStateProperty.all(
|
||||
scaleConfig.preferBorders
|
||||
|
@ -85,7 +85,7 @@ class _HomeAccountReadyState extends State<HomeAccountReady> {
|
|||
: scale.primaryScale.borderText,
|
||||
width: 2),
|
||||
borderRadius: BorderRadius.all(
|
||||
Radius.circular(12 * scaleConfig.borderRadiusScale))),
|
||||
Radius.circular(8 * scaleConfig.borderRadiusScale))),
|
||||
)),
|
||||
tooltip: translate('menu.contacts_tooltip'),
|
||||
onPressed: () async {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue