@@ -77,15 +77,6 @@ class JJAppState extends State<JJApp> with WidgetsBindingObserver {
77
77
Widget build (BuildContext context) {
78
78
return _buildOKToast (
79
79
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
- ),
89
80
child: MaterialApp (
90
81
theme: themeBy (brightness: Brightness .light),
91
82
darkTheme: themeBy (brightness: Brightness .dark),
@@ -110,6 +101,15 @@ class JJAppState extends State<JJApp> with WidgetsBindingObserver {
110
101
),
111
102
),
112
103
),
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
+ ),
113
113
),
114
114
),
115
115
);
@@ -128,16 +128,3 @@ class _ScrollBehavior extends MaterialScrollBehavior {
128
128
return child;
129
129
}
130
130
}
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