feat: Ability to Add Scroll Behaviour
solve this issue https://github.com/jonataslaw/getx/issues/1557 There is a new way to remove Overscroll Glow, as Flutter deprecates `buildViewportChrome` For more info : https://stackoverflow.com/a/68477729/2362966
Showing
1 changed file
with
5 additions
and
0 deletions
@@ -43,6 +43,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -43,6 +43,7 @@ class GetMaterialApp extends StatelessWidget { | ||
43 | this.showSemanticsDebugger = false, | 43 | this.showSemanticsDebugger = false, |
44 | this.debugShowCheckedModeBanner = true, | 44 | this.debugShowCheckedModeBanner = true, |
45 | this.shortcuts, | 45 | this.shortcuts, |
46 | + this.scrollBehavior, | ||
46 | this.customTransition, | 47 | this.customTransition, |
47 | this.translationsKeys, | 48 | this.translationsKeys, |
48 | this.translations, | 49 | this.translations, |
@@ -101,6 +102,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -101,6 +102,7 @@ class GetMaterialApp extends StatelessWidget { | ||
101 | final bool showSemanticsDebugger; | 102 | final bool showSemanticsDebugger; |
102 | final bool debugShowCheckedModeBanner; | 103 | final bool debugShowCheckedModeBanner; |
103 | final Map<LogicalKeySet, Intent>? shortcuts; | 104 | final Map<LogicalKeySet, Intent>? shortcuts; |
105 | + final ScrollBehavior? scrollBehavior; | ||
104 | final ThemeData? highContrastTheme; | 106 | final ThemeData? highContrastTheme; |
105 | final ThemeData? highContrastDarkTheme; | 107 | final ThemeData? highContrastDarkTheme; |
106 | final Map<Type, Action<Intent>>? actions; | 108 | final Map<Type, Action<Intent>>? actions; |
@@ -152,6 +154,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -152,6 +154,7 @@ class GetMaterialApp extends StatelessWidget { | ||
152 | this.showSemanticsDebugger = false, | 154 | this.showSemanticsDebugger = false, |
153 | this.debugShowCheckedModeBanner = true, | 155 | this.debugShowCheckedModeBanner = true, |
154 | this.shortcuts, | 156 | this.shortcuts, |
157 | + this.scrollBehavior, | ||
155 | this.actions, | 158 | this.actions, |
156 | this.customTransition, | 159 | this.customTransition, |
157 | this.translationsKeys, | 160 | this.translationsKeys, |
@@ -283,6 +286,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -283,6 +286,7 @@ class GetMaterialApp extends StatelessWidget { | ||
283 | showSemanticsDebugger: showSemanticsDebugger, | 286 | showSemanticsDebugger: showSemanticsDebugger, |
284 | debugShowCheckedModeBanner: debugShowCheckedModeBanner, | 287 | debugShowCheckedModeBanner: debugShowCheckedModeBanner, |
285 | shortcuts: shortcuts, | 288 | shortcuts: shortcuts, |
289 | + scrollBehavior: scrollBehavior, | ||
286 | ) | 290 | ) |
287 | : MaterialApp( | 291 | : MaterialApp( |
288 | key: _.unikey, | 292 | key: _.unikey, |
@@ -332,6 +336,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -332,6 +336,7 @@ class GetMaterialApp extends StatelessWidget { | ||
332 | showSemanticsDebugger: showSemanticsDebugger, | 336 | showSemanticsDebugger: showSemanticsDebugger, |
333 | debugShowCheckedModeBanner: debugShowCheckedModeBanner, | 337 | debugShowCheckedModeBanner: debugShowCheckedModeBanner, |
334 | shortcuts: shortcuts, | 338 | shortcuts: shortcuts, |
339 | + scrollBehavior: scrollBehavior, | ||
335 | // actions: actions, | 340 | // actions: actions, |
336 | )); | 341 | )); |
337 | } | 342 | } |
-
Please register or login to post a comment