Merge pull request #666 from ente-io/change_log_dismiss

ChangeLog: Disable dismiss on swipe down
This commit is contained in:
Ashil 2022-11-23 21:23:08 +05:30 committed by GitHub
commit 9b751bab63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 10 deletions

View file

@ -443,6 +443,7 @@ class _HomeWidgetState extends State<HomeWidget> {
),
),
backgroundColor: colorScheme.backgroundElevated,
enableDrag: false,
barrierColor: backdropMutedDark,
context: context,
builder: (BuildContext context) {

View file

@ -41,17 +41,18 @@ class _ChangeLogPageState extends State<ChangeLogPage> {
const SizedBox(
height: 36,
),
SafeArea(
child: Container(
alignment: Alignment.centerLeft,
child: const Padding(
padding: EdgeInsets.symmetric(horizontal: 16.0),
child: TitleBarTitleWidget(
title: "What's new",
),
Container(
alignment: Alignment.centerLeft,
child: const Padding(
padding: EdgeInsets.symmetric(horizontal: 16.0),
child: TitleBarTitleWidget(
title: "What's new",
),
),
),
const SizedBox(
height: 24,
),
Expanded(child: _getChangeLog()),
const DividerWidget(
dividerType: DividerType.solid,
@ -184,15 +185,14 @@ class _ChangeLogPageState extends State<ChangeLogPage> {
thumbVisibility: true,
thickness: 2.0,
child: ListView.builder(
physics: const BouncingScrollPhysics(),
itemBuilder: (context, index) {
return Padding(
padding: const EdgeInsets.only(right: 16.0),
child: ChangeLogEntryWidget(entry: items[index]),
);
},
physics: const ClampingScrollPhysics(),
itemCount: items.length,
shrinkWrap: true,
),
),
);