forked from firka/firka
Beállítás menü fix
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:firka/ui/components/firka_card.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:majesticons_flutter/majesticons_flutter.dart';
|
import 'package:majesticons_flutter/majesticons_flutter.dart';
|
||||||
@@ -26,39 +27,24 @@ void showExtrasBottomSheet(BuildContext context, AppInitialization data) {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 60,
|
height: 60,
|
||||||
width: itemWidth,
|
width: itemWidth,
|
||||||
child: FirkaShadow(
|
child: FirkaCard(
|
||||||
shadow: true,
|
left: [
|
||||||
child: Card(
|
FirkaIconWidget(
|
||||||
color: appStyle.colors.card,
|
FirkaIconType.majesticons,
|
||||||
shadowColor: context.watch<ThemeCubit>().state.isLightMode
|
Majesticon.bug2Solid,
|
||||||
? null
|
size: 22.0,
|
||||||
: Colors.transparent,
|
color: appStyle.colors.accent,
|
||||||
child: Align(
|
),
|
||||||
alignment: Alignment.centerLeft,
|
SizedBox(width: 4),
|
||||||
child: Padding(
|
Text(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
data.l10n.debug_screen,
|
||||||
child: Row(
|
textAlign: TextAlign.right,
|
||||||
children: [
|
style: appStyle.fonts.B_16R.apply(
|
||||||
FirkaIconWidget(
|
color: appStyle.colors.textPrimary,
|
||||||
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(
|
child: SizedBox(
|
||||||
height: 60,
|
height: 60,
|
||||||
width: itemWidth,
|
width: itemWidth,
|
||||||
child: FirkaShadow(
|
child: FirkaCard(
|
||||||
shadow: true,
|
left: [
|
||||||
child: Card(
|
FirkaIconWidget(
|
||||||
color: appStyle.colors.card,
|
FirkaIconType.majesticons,
|
||||||
shadowColor:
|
Majesticon.userSolid,
|
||||||
context
|
size: 22.0,
|
||||||
.watch<ThemeCubit>()
|
color: appStyle.colors.accent,
|
||||||
.state
|
),
|
||||||
.isLightMode
|
SizedBox(width: 4),
|
||||||
? null
|
Text(
|
||||||
: Colors.transparent,
|
data.l10n.s_your_account,
|
||||||
child: Align(
|
textAlign: TextAlign.right,
|
||||||
alignment: Alignment.centerLeft,
|
style: appStyle.fonts.B_16R.apply(
|
||||||
child: Padding(
|
color:
|
||||||
padding: const EdgeInsets.symmetric(
|
appStyle.colors.textPrimary,
|
||||||
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,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
),
|
)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
@@ -183,48 +146,25 @@ void showExtrasBottomSheet(BuildContext context, AppInitialization data) {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 60,
|
height: 60,
|
||||||
width: itemWidth,
|
width: itemWidth,
|
||||||
child: FirkaShadow(
|
child: FirkaCard(
|
||||||
shadow: true,
|
left: [
|
||||||
child: Card(
|
FirkaIconWidget(
|
||||||
color: appStyle.colors.card,
|
FirkaIconType.majesticons,
|
||||||
shadowColor:
|
Majesticon.settingsCogSolid,
|
||||||
context
|
size: 22.0,
|
||||||
.watch<ThemeCubit>()
|
color: appStyle.colors.accent,
|
||||||
.state
|
),
|
||||||
.isLightMode
|
SizedBox(width: 4),
|
||||||
? null
|
Text(
|
||||||
: Colors.transparent,
|
data.l10n.settings_screen,
|
||||||
child: Align(
|
textAlign: TextAlign.right,
|
||||||
alignment: Alignment.centerLeft,
|
style: appStyle.fonts.B_16R.apply(
|
||||||
child: Padding(
|
color:
|
||||||
padding: const EdgeInsets.symmetric(
|
appStyle.colors.textPrimary,
|
||||||
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,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
),
|
)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Ide jön a többi gomb majd
|
// Ide jön a többi gomb majd
|
||||||
|
|||||||
Reference in New Issue
Block a user