fix tx history scroll behavior (#3549)
malik1004x committed
Aug 21, 2026 at 20:10 UTC
484f42aa8be8f9178203e6453a8f8da55271aa74
2 files changed
+6
-3
lib/new-ui/widgets/coins_page/assets_history/history_modal.dart
+3
-1
@@ -39,7 +39,9 @@ class HistoryModal extends StatelessWidget {
39
child: Stack(
40
children: [
41
Material(
42
- child: CustomScrollView(controller: ModalScrollController.of(context), slivers: [
42
+ child: CustomScrollView(physics: ClampingScrollPhysics(),
43
+ controller: ModalScrollController.of(context),
44
+ slivers: [
45
HistorySection(
46
detailsAsPage: true,
47
dashboardViewModel: dashboardViewModel,
lib/new-ui/widgets/coins_page/assets_history/history_section.dart
+3
-2
@@ -22,6 +22,7 @@ import 'package:flutter/cupertino.dart';
22
import 'package:flutter/material.dart';
23
import 'package:flutter_mobx/flutter_mobx.dart';
24
import 'package:intl/intl.dart';
25
+import "package:modal_bottom_sheet/modal_bottom_sheet.dart";
26
27
class HistorySection extends StatelessWidget {
28
const HistorySection(
@@ -107,8 +108,8 @@ class HistorySection extends StatelessWidget {
108
Navigator.of(context).push(CupertinoPageRoute(
109
builder: (context) => Material(child: page)));
110
} else {
110
- showModalBottomSheet(
111
- isScrollControlled: true,
111
+ showMaterialModalBottomSheet(
112
+ backgroundColor: Colors.transparent,
113
context: context,
114
builder: (context) =>
115
FractionallySizedBox(heightFactor: 0.9, child: page));