Skip to content

Commit

Permalink
[Presentation] Improvements to the characters_page.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Jul 18, 2021
1 parent 444fb7b commit 9e370c1
Show file tree
Hide file tree
Showing 5 changed files with 205 additions and 392 deletions.
4 changes: 2 additions & 2 deletions lib/presentation/artifacts/artifacts_page.dart
Expand Up @@ -9,7 +9,7 @@ import 'package:genshindb/presentation/shared/sliver_nothing_found.dart';
import 'package:genshindb/presentation/shared/sliver_page_filter.dart';
import 'package:genshindb/presentation/shared/sliver_scaffold_with_fab.dart';
import 'package:genshindb/presentation/shared/styles.dart';
import 'package:genshindb/presentation/shared/utils/grid_utils.dart';
import 'package:genshindb/presentation/shared/utils/size_utils.dart';

import 'widgets/artifact_bottom_sheet.dart';
import 'widgets/artifact_card.dart';
Expand Down Expand Up @@ -80,7 +80,7 @@ class _ArtifactsPageState extends State<ArtifactsPage> with AutomaticKeepAliveCl
return SliverPadding(
padding: const EdgeInsets.symmetric(horizontal: 5),
sliver: SliverStaggeredGrid.countBuilder(
crossAxisCount: GridUtils.getCrossAxisCountForGrids(context),
crossAxisCount: SizeUtils.getCrossAxisCountForGrids(context),
itemBuilder: (ctx, index) => ArtifactCard.item(item: artifacts[index], isInSelectionMode: widget.isInSelectionMode),
itemCount: artifacts.length,
crossAxisSpacing: isPortrait ? 10 : 5,
Expand Down
Expand Up @@ -269,7 +269,7 @@ class _LandscapeLayout extends StatelessWidget {
return Row(
children: [
Flexible(
flex: 70,
flex: 60,
fit: FlexFit.tight,
child: CustomScrollView(
slivers: [
Expand Down Expand Up @@ -314,7 +314,7 @@ class _LandscapeLayout extends StatelessWidget {
),
),
Flexible(
flex: 30,
flex: 40,
fit: FlexFit.tight,
child: CustomScrollView(
slivers: [
Expand Down

0 comments on commit 9e370c1

Please sign in to comment.