stretching overscroll
This commit is contained in:
parent
fd8083a90f
commit
8f5d19bb17
1 changed files with 12 additions and 0 deletions
|
@ -148,6 +148,8 @@ class _AvesAppState extends State<AvesApp> with WidgetsBindingObserver {
|
||||||
locale: settingsLocale,
|
locale: settingsLocale,
|
||||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||||
supportedLocales: AppLocalizations.supportedLocales,
|
supportedLocales: AppLocalizations.supportedLocales,
|
||||||
|
// TODO TLAD remove custom scroll behavior when this is fixed: https://github.com/flutter/flutter/issues/82906
|
||||||
|
scrollBehavior: StretchMaterialScrollBehavior(),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
@ -325,3 +327,13 @@ class _AvesAppState extends State<AvesApp> with WidgetsBindingObserver {
|
||||||
|
|
||||||
void _onError(String? error) => reportService.recordError(error, null);
|
void _onError(String? error) => reportService.recordError(error, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class StretchMaterialScrollBehavior extends MaterialScrollBehavior {
|
||||||
|
@override
|
||||||
|
Widget buildOverscrollIndicator(BuildContext context, Widget child, ScrollableDetails details) {
|
||||||
|
return StretchingOverscrollIndicator(
|
||||||
|
axisDirection: details.direction,
|
||||||
|
child: child,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue