fixes
This commit is contained in:
parent
e873fbb097
commit
188eb72cb2
2 changed files with 7 additions and 16 deletions
|
|
@ -207,7 +207,7 @@ class _LoadingScreen extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
home: Scaffold(
|
home: Scaffold(
|
||||||
backgroundColor: Theme.of(context).isDark ? AppTheme.dark.backgroundColor : AppTheme.light.backgroundColor,
|
backgroundColor: Theme.of(context).colorScheme.brightness == Brightness.dark ? AppTheme.dark.scaffoldBackgroundColor : AppTheme.light.scaffoldBackgroundColor,
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:mnemo_cards_common/mnemo_cards_common.dart';
|
import 'package:mnemo_cards_common/mnemo_cards_common.dart';
|
||||||
import 'package:mnemo_cards_web_v2/di/user_scope/user_scope.dart';
|
|
||||||
import 'package:yx_scope_flutter/yx_scope_flutter.dart';
|
|
||||||
|
|
||||||
import '../../utils/color_extension.dart';
|
import '../../utils/color_extension.dart';
|
||||||
|
|
||||||
|
|
@ -75,6 +73,7 @@ class PackDetailsHeader extends StatelessWidget {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget _buildTitleSection(BuildContext context, Color packColor) {
|
||||||
return Hero(
|
return Hero(
|
||||||
tag: 'pack-hero-${pack.id}',
|
tag: 'pack-hero-${pack.id}',
|
||||||
child: Material(
|
child: Material(
|
||||||
|
|
@ -106,20 +105,12 @@ class PackDetailsHeader extends StatelessWidget {
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: packColor.withOpacity(0.1),
|
color: packColor.withOpacity(0.1),
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
image: cachedImage != null
|
|
||||||
? DecorationImage(
|
|
||||||
image: cachedImage,
|
|
||||||
fit: BoxFit.cover,
|
|
||||||
)
|
|
||||||
: null,
|
|
||||||
),
|
),
|
||||||
child: cachedImage == null
|
child: Icon(
|
||||||
? Icon(
|
|
||||||
Icons.collections_bookmark,
|
Icons.collections_bookmark,
|
||||||
color: packColor,
|
color: packColor,
|
||||||
size: 28,
|
size: 28,
|
||||||
)
|
),
|
||||||
: null,
|
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(width: 16),
|
const SizedBox(width: 16),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue