Skip to content

Commit

Permalink
fix(masamune): Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Aug 4, 2022
1 parent 96fffb7 commit b60a13e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions packages/katana_module/lib/src/page_reroute_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -177,21 +177,23 @@ class PageRerouteState extends PageScopedStateBase<PageRerouteWidget> {
Widget build(BuildContext context) {
return PageScoped(
state: this,
child: GestureDetector(
onTap: () => context.unfocus(),
child: SafeArea(
child: Scoped(
builder: (context, ref) {
if (!_initialized) {
widget.reroute(context, ref);
_initialized = true;
}
return Center(
child: context.theme.widget.loadingIndicator
?.call(context, context.theme.primaryColor) ??
const CircularProgressIndicator(),
);
},
child: Scaffold(
body: GestureDetector(
onTap: () => context.unfocus(),
child: SafeArea(
child: Scoped(
builder: (context, ref) {
if (!_initialized) {
widget.reroute(context, ref);
_initialized = true;
}
return Center(
child: context.theme.widget.loadingIndicator
?.call(context, context.theme.primaryColor) ??
const CircularProgressIndicator(),
);
},
),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_module/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
share_plus: ^4.0.4
font_awesome_flutter: ^10.1.0
photo_view: ^0.14.0
flutter_quill: ^5.0.3
flutter_quill: ^5.4.1
sprintf: ^6.0.0
tuple: ^2.0.0
loading_animations: ^2.2.0
Expand Down

0 comments on commit b60a13e

Please sign in to comment.