fix tx history scroll behavior (#3549)

This commit is contained in:
malik1004x
2026-08-21 20:10:04 +02:00
committed by GitHub
parent 8eddd4d481
commit 484f42aa8b
2 changed files with 6 additions and 3 deletions
@@ -39,7 +39,9 @@ class HistoryModal extends StatelessWidget {
child: Stack(
children: [
Material(
child: CustomScrollView(controller: ModalScrollController.of(context), slivers: [
child: CustomScrollView(physics: ClampingScrollPhysics(),
controller: ModalScrollController.of(context),
slivers: [
HistorySection(
detailsAsPage: true,
dashboardViewModel: dashboardViewModel,
@@ -22,6 +22,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:intl/intl.dart';
import "package:modal_bottom_sheet/modal_bottom_sheet.dart";
class HistorySection extends StatelessWidget {
const HistorySection(
@@ -107,8 +108,8 @@ class HistorySection extends StatelessWidget {
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => Material(child: page)));
} else {
showModalBottomSheet(
isScrollControlled: true,
showMaterialModalBottomSheet(
backgroundColor: Colors.transparent,
context: context,
builder: (context) =>
FractionallySizedBox(heightFactor: 0.9, child: page));