From 9838d6ed53b888b17ee41d2b5ba6be43c50f7711 Mon Sep 17 00:00:00 2001 From: balint1414 Date: Sat, 13 Jun 2026 01:15:48 +0200 Subject: [PATCH] =?UTF-8?q?Be=C3=A1ll=C3=ADt=C3=A1s=20men=C3=BC=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- firka/lib/ui/phone/pages/extras/extras.dart | 162 ++++++-------------- 1 file changed, 51 insertions(+), 111 deletions(-) diff --git a/firka/lib/ui/phone/pages/extras/extras.dart b/firka/lib/ui/phone/pages/extras/extras.dart index a5c37427..8e9a18fb 100644 --- a/firka/lib/ui/phone/pages/extras/extras.dart +++ b/firka/lib/ui/phone/pages/extras/extras.dart @@ -1,3 +1,4 @@ +import 'package:firka/ui/components/firka_card.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:majesticons_flutter/majesticons_flutter.dart'; @@ -26,39 +27,24 @@ void showExtrasBottomSheet(BuildContext context, AppInitialization data) { child: SizedBox( height: 60, width: itemWidth, - child: FirkaShadow( - shadow: true, - child: Card( - color: appStyle.colors.card, - shadowColor: context.watch().state.isLightMode - ? null - : Colors.transparent, - child: Align( - alignment: Alignment.centerLeft, - child: Padding( - padding: const EdgeInsets.symmetric(horizontal: 12.0), - child: Row( - children: [ - FirkaIconWidget( - FirkaIconType.majesticons, - Majesticon.bug2Solid, - size: 22.0, - color: appStyle.colors.accent, - ), - SizedBox(width: 4), - Text( - data.l10n.debug_screen, - textAlign: TextAlign.right, - style: appStyle.fonts.B_16R.apply( - color: appStyle.colors.textPrimary, - ), - ), - ], - ), + child: FirkaCard( + left: [ + FirkaIconWidget( + FirkaIconType.majesticons, + Majesticon.bug2Solid, + size: 22.0, + color: appStyle.colors.accent, + ), + SizedBox(width: 4), + Text( + data.l10n.debug_screen, + textAlign: TextAlign.right, + style: appStyle.fonts.B_16R.apply( + color: appStyle.colors.textPrimary, ), ), - ), - ), + ], + ) ), ); } @@ -130,48 +116,25 @@ void showExtrasBottomSheet(BuildContext context, AppInitialization data) { child: SizedBox( height: 60, width: itemWidth, - child: FirkaShadow( - shadow: true, - child: Card( - color: appStyle.colors.card, - shadowColor: - context - .watch() - .state - .isLightMode - ? null - : Colors.transparent, - child: Align( - alignment: Alignment.centerLeft, - child: Padding( - padding: const EdgeInsets.symmetric( - horizontal: 12.0, - ), - child: Row( - children: [ - FirkaIconWidget( - FirkaIconType.majesticons, - Majesticon.userSolid, - size: 22.0, - color: appStyle.colors.accent, - ), - SizedBox(width: 4), - Text( - data.l10n.s_your_account, - textAlign: TextAlign.right, - style: appStyle.fonts.B_16R - .apply( - color: appStyle - .colors - .textPrimary, - ), - ), - ], - ), + child: FirkaCard( + left: [ + FirkaIconWidget( + FirkaIconType.majesticons, + Majesticon.userSolid, + size: 22.0, + color: appStyle.colors.accent, + ), + SizedBox(width: 4), + Text( + data.l10n.s_your_account, + textAlign: TextAlign.right, + style: appStyle.fonts.B_16R.apply( + color: + appStyle.colors.textPrimary, ), ), - ), - ), + ], + ) ), ), GestureDetector( @@ -183,48 +146,25 @@ void showExtrasBottomSheet(BuildContext context, AppInitialization data) { child: SizedBox( height: 60, width: itemWidth, - child: FirkaShadow( - shadow: true, - child: Card( - color: appStyle.colors.card, - shadowColor: - context - .watch() - .state - .isLightMode - ? null - : Colors.transparent, - child: Align( - alignment: Alignment.centerLeft, - child: Padding( - padding: const EdgeInsets.symmetric( - horizontal: 12.0, - ), - child: Row( - children: [ - FirkaIconWidget( - FirkaIconType.majesticons, - Majesticon.settingsCogSolid, - size: 22.0, - color: appStyle.colors.accent, - ), - SizedBox(width: 4), - Text( - data.l10n.settings_screen, - textAlign: TextAlign.right, - style: appStyle.fonts.B_16R - .apply( - color: appStyle - .colors - .textPrimary, - ), - ), - ], - ), + child: FirkaCard( + left: [ + FirkaIconWidget( + FirkaIconType.majesticons, + Majesticon.settingsCogSolid, + size: 22.0, + color: appStyle.colors.accent, + ), + SizedBox(width: 4), + Text( + data.l10n.settings_screen, + textAlign: TextAlign.right, + style: appStyle.fonts.B_16R.apply( + color: + appStyle.colors.textPrimary, ), ), - ), - ), + ], + ) ), ), // Ide jön a többi gomb majd