mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fix tx history scroll behavior (#3549)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user