refactor ui
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-09-05 17:54:00 -05:00
parent db70ad5aa0
commit 06bc838e27
2 changed files with 14 additions and 8 deletions

View File

@@ -21,11 +21,13 @@ const gradientColors = [Color(0xFF0A0F1F), Color(0xFF1B1C1F)];
const gradientColors2 = [Color(0x07FFFFFF), Color(0x00000000)]; const gradientColors2 = [Color(0x07FFFFFF), Color(0x00000000)];
const highlightAlpha = 0.10; const highlightAlpha = 0.10;
const largeIconSize = 32.0; const largeIconSize = 32.0;
const logonWidth = 300.0; const loginIconSize = 54.0;
const logonWidth = 420.0;
const outlineAlpha = 0.15; const outlineAlpha = 0.15;
const padding = 16.0; const padding = 16.0;
const paddingSmall = padding / 2.0;
const paddingLarge = padding * 2.0; const paddingLarge = padding * 2.0;
const paddingMedium = 12.0;
const paddingSmall = padding / 2.0;
const primaryAlpha = 0.12; const primaryAlpha = 0.12;
const primarySurfaceAlpha = 92.0; const primarySurfaceAlpha = 92.0;
const protocolTypeList = ['http', 'https']; const protocolTypeList = ['http', 'https'];

View File

@@ -136,8 +136,8 @@ class _AuthScreenState extends State<AuthScreen> {
duration: const Duration(milliseconds: 250), duration: const Duration(milliseconds: 250),
child: ConstrainedBox( child: ConstrainedBox(
constraints: const BoxConstraints( constraints: const BoxConstraints(
maxWidth: 420, maxWidth: constants.logonWidth,
minWidth: 300, minWidth: constants.logonWidth,
), ),
child: Card( child: Card(
elevation: constants.padding, elevation: constants.padding,
@@ -164,8 +164,12 @@ class _AuthScreenState extends State<AuthScreen> {
Align( Align(
alignment: Alignment.center, alignment: Alignment.center,
child: Container( child: Container(
width: 64, width:
height: 64, constants.loginIconSize +
constants.paddingMedium * 2.0,
height:
constants.loginIconSize +
constants.paddingMedium * 2.0,
decoration: BoxDecoration( decoration: BoxDecoration(
color: scheme.primary.withValues( color: scheme.primary.withValues(
alpha: constants.outlineAlpha, alpha: constants.outlineAlpha,
@@ -187,7 +191,7 @@ class _AuthScreenState extends State<AuthScreen> {
], ],
), ),
padding: const EdgeInsets.all( padding: const EdgeInsets.all(
constants.borderRadius, constants.paddingMedium,
), ),
child: Image.asset( child: Image.asset(
'assets/images/repertory.png', 'assets/images/repertory.png',
@@ -196,7 +200,7 @@ class _AuthScreenState extends State<AuthScreen> {
return Icon( return Icon(
Icons.folder, Icons.folder,
color: scheme.primary, color: scheme.primary,
size: constants.largeIconSize, size: constants.loginIconSize,
); );
}, },
), ),