Skip to content

Commit

Permalink
fix(masamune_module): masamune change support.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Sep 25, 2022
1 parent c3e72bc commit 1c99f59
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class TileMenuHomeModuleHomePage extends PageModuleWidget<TileMenuHomeModule> {
alignment: Alignment.centerLeft,
child: SizedBox(
height: module.headerHeight,
width: context.isMobileOrSmall
width: context.isMobileOrSmallWidth
? null
: () {
return context.mediaQuery.size.width / 2;
Expand Down Expand Up @@ -303,7 +303,7 @@ class TileMenuHomeModuleHomePage extends PageModuleWidget<TileMenuHomeModule> {
Icon(
item.icon ?? Icons.info,
size: module.menuIconSize ??
(context.isMobileOrSmall ? 64 : 78),
(context.isMobileOrSmallWidth ? 64 : 78),
color: module.textColor ??
context.theme.textColorOnPrimary,
),
Expand All @@ -315,7 +315,8 @@ class TileMenuHomeModuleHomePage extends PageModuleWidget<TileMenuHomeModule> {
color: module.textColor ??
context.theme.textColorOnPrimary,
fontWeight: FontWeight.bold,
fontSize: context.isMobileOrSmall ? null : 15,
fontSize:
context.isMobileOrSmallWidth ? null : 15,
),
),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_module/lib/component/post/post.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class PostModuleHomePage extends PageModuleWidget<PostModule> {
return [
ListItem(
selected: !context.isMobileOrModal &&
controller.route?.name.last() == item.get(Const.uid, ""),
controller.route?.name?.last() == item.get(Const.uid, ""),
selectedColor: context.theme.textColorOnPrimary,
selectedTileColor: context.theme.primaryColor.withOpacity(0.8),
title: Text(item.get(module.nameKey, "")),
Expand Down
8 changes: 4 additions & 4 deletions packages/masamune_module/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -517,14 +517,14 @@ packages:
name: katana_module
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+10"
version: "0.15.0+11"
katana_routing:
dependency: transitive
description:
name: katana_routing
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+3"
version: "0.15.0+4"
loading_animations:
dependency: transitive
description:
Expand Down Expand Up @@ -552,14 +552,14 @@ packages:
name: masamune
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+10"
version: "0.15.0+11"
masamune_ui:
dependency: "direct main"
description:
name: masamune_ui
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.0+10"
version: "0.15.0+11"
matcher:
dependency: transitive
description:
Expand Down

0 comments on commit 1c99f59

Please sign in to comment.