mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-23 06:38:35 +02:00
Generic fixes (#1304)
* fix mobx no element error * fix mobx issue * Remove unused code * Enhance error handling for monero sync failure case * Separate litecoin mnemonic exception from bitcoin * - Enable onramper for polygon - Add Kaspa validation * Set null as the default length of address validation * Modify EVM fee text [skip ci] * Add seed length option to polygon * Add digibyte * Update configure_cake_wallet.sh and fix conflicts * Pin bottom section * Fix Solana missing isTestnet param
This commit is contained in:
@@ -14,37 +14,28 @@ class ScrollableWithBottomSection extends StatefulWidget {
|
||||
final EdgeInsets? bottomSectionPadding;
|
||||
|
||||
@override
|
||||
ScrollableWithBottomSectionState createState() =>
|
||||
ScrollableWithBottomSectionState();
|
||||
ScrollableWithBottomSectionState createState() => ScrollableWithBottomSectionState();
|
||||
}
|
||||
|
||||
class ScrollableWithBottomSectionState
|
||||
extends State<ScrollableWithBottomSection> {
|
||||
class ScrollableWithBottomSectionState extends State<ScrollableWithBottomSection> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return LayoutBuilder(builder: (context, constraints) {
|
||||
return SingleChildScrollView(
|
||||
// physics:
|
||||
// const AlwaysScrollableScrollPhysics(), // const NeverScrollableScrollPhysics(), //
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
minHeight: constraints.heightConstraints().maxHeight),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
Padding(
|
||||
padding: widget.contentPadding ??
|
||||
EdgeInsets.only(left: 20, right: 20),
|
||||
child: widget.content,
|
||||
),
|
||||
Padding(
|
||||
padding: widget.bottomSectionPadding ??
|
||||
EdgeInsets.only(bottom: 20, right: 20, left: 20),
|
||||
child: widget.bottomSection)
|
||||
],
|
||||
return Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: SingleChildScrollView(
|
||||
child: Padding(
|
||||
padding: widget.contentPadding ?? EdgeInsets.only(left: 20, right: 20),
|
||||
child: widget.content,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
});
|
||||
Padding(
|
||||
padding: widget.bottomSectionPadding?.copyWith(top: 10) ??
|
||||
EdgeInsets.only(top: 10, bottom: 20, right: 20, left: 20),
|
||||
child: widget.bottomSection,
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user