diff --git a/lib/new-ui/widgets/coins_page/assets_history/history_modal.dart b/lib/new-ui/widgets/coins_page/assets_history/history_modal.dart index 913266746..11f2310c2 100644 --- a/lib/new-ui/widgets/coins_page/assets_history/history_modal.dart +++ b/lib/new-ui/widgets/coins_page/assets_history/history_modal.dart @@ -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, diff --git a/lib/new-ui/widgets/coins_page/assets_history/history_section.dart b/lib/new-ui/widgets/coins_page/assets_history/history_section.dart index cc73b556f..d27835ee7 100644 --- a/lib/new-ui/widgets/coins_page/assets_history/history_section.dart +++ b/lib/new-ui/widgets/coins_page/assets_history/history_section.dart @@ -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));