Skip to content

Commit 99c6ec0

Browse files
committed
fix
1 parent 7ffe700 commit 99c6ec0

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

lib/app.dart

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ class JJAppState extends State<JJApp> with WidgetsBindingObserver {
7777
Widget build(BuildContext context) {
7878
return _buildOKToast(
7979
child: ProviderScope(
80-
localizationsDelegates: JJLocalizations.localizationsDelegates,
81-
supportedLocales: JJLocalizations.supportedLocales,
82-
scrollBehavior: _ScrollBehavior(),
83-
builder: (BuildContext context, Widget? child) => Stack(
84-
children: <Widget>[
85-
_buildAnnotatedRegion(context, child!),
86-
_buildBottomPaddingVerticalShield(context),
87-
],
88-
),
8980
child: MaterialApp(
9081
theme: themeBy(brightness: Brightness.light),
9182
darkTheme: themeBy(brightness: Brightness.dark),
@@ -110,6 +101,15 @@ class JJAppState extends State<JJApp> with WidgetsBindingObserver {
110101
),
111102
),
112103
),
104+
localizationsDelegates: JJLocalizations.localizationsDelegates,
105+
supportedLocales: JJLocalizations.supportedLocales,
106+
scrollBehavior: _ScrollBehavior(),
107+
builder: (BuildContext context, Widget? child) => Stack(
108+
children: <Widget>[
109+
_buildAnnotatedRegion(context, child!),
110+
_buildBottomPaddingVerticalShield(context),
111+
],
112+
),
113113
),
114114
),
115115
);
@@ -128,16 +128,3 @@ class _ScrollBehavior extends MaterialScrollBehavior {
128128
return child;
129129
}
130130
}
131-
132-
class _ScrollBehavior extends MaterialScrollBehavior {
133-
/// do not wrapper a [Scrollbar] on desktop platforms
134-
/// That will cause scroll position error with multi scrollables
135-
@override
136-
Widget buildScrollbar(
137-
BuildContext context,
138-
Widget child,
139-
ScrollableDetails details,
140-
) {
141-
return child;
142-
}
143-
}

0 commit comments

Comments
 (0)