mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-05 10:29:23 +00:00
minor fix
This commit is contained in:
parent
92e1c3a4c1
commit
45eb5eaeb2
1 changed files with 1 additions and 3 deletions
|
@ -167,7 +167,6 @@ class SendCardState extends State<SendCard> with AutomaticKeepAliveClientMixin<S
|
||||||
WidgetsBinding.instance!.addPostFrameCallback((_) => _updateGenericHeight(
|
WidgetsBinding.instance!.addPostFrameCallback((_) => _updateGenericHeight(
|
||||||
containerKey: _containerKey,
|
containerKey: _containerKey,
|
||||||
dynamicElementKey: _dynamicElementKey,
|
dynamicElementKey: _dynamicElementKey,
|
||||||
additionalPadding: parsedAddressTopPadding,
|
|
||||||
));
|
));
|
||||||
final validator = output.isParsedAddress
|
final validator = output.isParsedAddress
|
||||||
? sendViewModel.textValidator
|
? sendViewModel.textValidator
|
||||||
|
@ -697,7 +696,6 @@ class SendCardState extends State<SendCard> with AutomaticKeepAliveClientMixin<S
|
||||||
void _updateGenericHeight({
|
void _updateGenericHeight({
|
||||||
required GlobalKey containerKey,
|
required GlobalKey containerKey,
|
||||||
required GlobalKey dynamicElementKey,
|
required GlobalKey dynamicElementKey,
|
||||||
double additionalPadding = 0.0,
|
|
||||||
}) {
|
}) {
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
final RenderBox containerBox = containerKey.currentContext!.findRenderObject() as RenderBox;
|
final RenderBox containerBox = containerKey.currentContext!.findRenderObject() as RenderBox;
|
||||||
|
@ -710,7 +708,7 @@ class SendCardState extends State<SendCard> with AutomaticKeepAliveClientMixin<S
|
||||||
_previousContainerHeight = newContainerHeight;
|
_previousContainerHeight = newContainerHeight;
|
||||||
_previousDynamicElementHeight = newDynamicElementHeight;
|
_previousDynamicElementHeight = newDynamicElementHeight;
|
||||||
|
|
||||||
_containerHeight = newContainerHeight + newDynamicElementHeight + additionalPadding;
|
_containerHeight = newContainerHeight + newDynamicElementHeight + parsedAddressTopPadding;
|
||||||
widget.heightNotifier.value = _containerHeight!;
|
widget.heightNotifier.value = _containerHeight!;
|
||||||
setState(() {});
|
setState(() {});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue