From 1151abab28236a7b0896ca2f81331403555dbb18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sun, 11 Jan 2026 02:20:26 +0100 Subject: [PATCH] Restore PixelatedElegance brand font and fix button callback error --- b0esche_cloud/lib/pages/home_page.dart | 51 +++++++++++++++----------- b0esche_cloud/pubspec.yaml | 5 +++ 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/b0esche_cloud/lib/pages/home_page.dart b/b0esche_cloud/lib/pages/home_page.dart index ad04b4c..0b5fb97 100644 --- a/b0esche_cloud/lib/pages/home_page.dart +++ b/b0esche_cloud/lib/pages/home_page.dart @@ -157,29 +157,36 @@ class _HomePageState extends State with TickerProviderStateMixin { builder: (context, state) { final isLoading = state is OrganizationLoaded && state.isLoading; + + if (isLoading) { + return Container( + padding: const EdgeInsets.symmetric( + horizontal: 24, + vertical: 14, + ), + child: const SizedBox( + width: 20, + height: 20, + child: CircularProgressIndicator( + strokeWidth: 2, + valueColor: AlwaysStoppedAnimation( + AppTheme.accentColor, + ), + ), + ), + ); + } + return ModernGlassButton( - onPressed: isLoading - ? null - : () { - final name = controller.text.trim(); - if (name.isNotEmpty) { - BlocProvider.of( - context, - ).add(CreateOrganization(name)); - } - }, - child: isLoading - ? const SizedBox( - width: 20, - height: 20, - child: CircularProgressIndicator( - strokeWidth: 2, - valueColor: AlwaysStoppedAnimation( - AppTheme.accentColor, - ), - ), - ) - : const Text('Create'), + onPressed: () { + final name = controller.text.trim(); + if (name.isNotEmpty) { + BlocProvider.of( + context, + ).add(CreateOrganization(name)); + } + }, + child: const Text('Create'), ); }, ), diff --git a/b0esche_cloud/pubspec.yaml b/b0esche_cloud/pubspec.yaml index 504aa18..4ff331a 100644 --- a/b0esche_cloud/pubspec.yaml +++ b/b0esche_cloud/pubspec.yaml @@ -76,3 +76,8 @@ flutter: assets: - assets/fonts/ + + fonts: + - family: PixelatedElegance + fonts: + - asset: assets/fonts/pixelated-elegance/PixelatedEleganceRegular-ovyAA.ttf