fix: some
This commit is contained in:
@@ -88,12 +88,6 @@ class _DetailPageState extends State<DetailPage> {
|
||||
required BuildContext context,
|
||||
MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceAround,
|
||||
CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center}) {
|
||||
// if (false && MediaQuery.of(context).size.width > 600) {
|
||||
// return Row(
|
||||
// mainAxisAlignment: mainAxisAlignment,
|
||||
// crossAxisAlignment: crossAxisAlignment,
|
||||
// children: children);
|
||||
// }
|
||||
return Column(
|
||||
mainAxisAlignment: mainAxisAlignment,
|
||||
crossAxisAlignment: crossAxisAlignment,
|
||||
@@ -202,7 +196,6 @@ class _DetailPageState extends State<DetailPage> {
|
||||
padding: const EdgeInsets.all(20),
|
||||
child: SizedBox(
|
||||
width: MediaQuery.sizeOf(context).width,
|
||||
// height: MediaQuery.sizeOf(context).height,
|
||||
child: _buildRowOrCol(
|
||||
context: context,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
@@ -288,12 +281,14 @@ class _DetailPageState extends State<DetailPage> {
|
||||
: categoryName!)
|
||||
: ''),
|
||||
backgroundColor: Colors.white,
|
||||
labelStyle:
|
||||
const TextStyle(color: Colors.black),
|
||||
),
|
||||
),
|
||||
),
|
||||
Center(
|
||||
child: MarkdownBody(
|
||||
data: '### Отстаток: _${item!.count}_',
|
||||
data: '### Остаток: _${item!.count}_',
|
||||
)),
|
||||
item!.description != ''
|
||||
? Padding(
|
||||
|
||||
@@ -19,6 +19,9 @@ class MyAppStateMobile extends State<MyApp> {
|
||||
: MaterialApp(
|
||||
title: 'GymLink Module',
|
||||
theme: theme,
|
||||
themeMode: context.read<GymLinkProvider>().blackTheme
|
||||
? ThemeMode.dark
|
||||
: ThemeMode.light,
|
||||
debugShowCheckedModeBanner: false,
|
||||
home: const MainPage(),
|
||||
),
|
||||
|
||||
@@ -13,7 +13,7 @@ ThemeData getThemeData(Color color, bool dark) {
|
||||
).copyWith(
|
||||
onPrimary: dark ? materialColor[600] : Colors.white,
|
||||
),
|
||||
useMaterial3: true,
|
||||
// useMaterial3: true,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user