Beállítás menü fix

This commit is contained in:
2026-06-13 01:15:48 +02:00
parent 49ec23c18e
commit 9838d6ed53

View File

@@ -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<ThemeCubit>().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<ThemeCubit>()
.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<ThemeCubit>()
.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