mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-20 21:28:41 -04:00
use non-bounce scroll physics because a lot of views want 'stick to bottom' scroll behavior
fix creating new accounts
This commit is contained in:
parent
551eedee6f
commit
4271fb51c6
2 changed files with 31 additions and 5 deletions
|
@ -30,6 +30,13 @@ class AttachDetachIntent extends Intent {
|
|||
const AttachDetachIntent();
|
||||
}
|
||||
|
||||
class ScrollBehaviorModified extends ScrollBehavior {
|
||||
const ScrollBehaviorModified();
|
||||
@override
|
||||
ScrollPhysics getScrollPhysics(BuildContext context) =>
|
||||
const ClampingScrollPhysics();
|
||||
}
|
||||
|
||||
class VeilidChatApp extends StatelessWidget {
|
||||
const VeilidChatApp({
|
||||
required this.initialThemeData,
|
||||
|
@ -159,6 +166,7 @@ class VeilidChatApp extends StatelessWidget {
|
|||
return DecoratedBox(
|
||||
decoration: BoxDecoration(gradient: gradient),
|
||||
child: MaterialApp.router(
|
||||
scrollBehavior: const ScrollBehaviorModified(),
|
||||
debugShowCheckedModeBanner: false,
|
||||
routerConfig: context.read<RouterCubit>().router(),
|
||||
title: translate('app.title'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue