mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-05-03 11:22:20 +00:00
fix desktop chans sending pop up layout
This commit is contained in:
parent
c31575eaf3
commit
6d3ce31cf6
1 changed files with 6 additions and 2 deletions
|
@ -13,6 +13,7 @@ import 'dart:io';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:lottie/lottie.dart';
|
import 'package:lottie/lottie.dart';
|
||||||
|
|
||||||
import '../../../themes/coin_image_provider.dart';
|
import '../../../themes/coin_image_provider.dart';
|
||||||
import '../../../themes/stack_colors.dart';
|
import '../../../themes/stack_colors.dart';
|
||||||
import '../../../utilities/assets.dart';
|
import '../../../utilities/assets.dart';
|
||||||
|
@ -64,6 +65,7 @@ class _RestoringDialogState extends ConsumerState<SendingTransactionDialog> {
|
||||||
|
|
||||||
if (Util.isDesktop) {
|
if (Util.isDesktop) {
|
||||||
return DesktopDialog(
|
return DesktopDialog(
|
||||||
|
maxHeight: assetPath.endsWith(".gif") ? double.infinity : null,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(40),
|
padding: const EdgeInsets.all(40),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
@ -77,8 +79,10 @@ class _RestoringDialogState extends ConsumerState<SendingTransactionDialog> {
|
||||||
height: 40,
|
height: 40,
|
||||||
),
|
),
|
||||||
assetPath.endsWith(".gif")
|
assetPath.endsWith(".gif")
|
||||||
? Image.file(
|
? Flexible(
|
||||||
File(assetPath),
|
child: Image.file(
|
||||||
|
File(assetPath),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: ProgressAndSuccess(
|
: ProgressAndSuccess(
|
||||||
controller: _progressAndSuccessController!,
|
controller: _progressAndSuccessController!,
|
||||||
|
|
Loading…
Reference in a new issue