mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 19:05:51 +00:00
WIP initial paynym send ui
This commit is contained in:
parent
178912a323
commit
2da1e23251
1 changed files with 40 additions and 14 deletions
|
@ -153,8 +153,16 @@ class _PaynymDetailsPopupState extends ConsumerState<DesktopPaynymDetails> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> _onSend() async {
|
||||||
|
print("sned");
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final wallet = ref
|
||||||
|
.watch(walletsChangeNotifierProvider)
|
||||||
|
.getManager(widget.walletId)
|
||||||
|
.wallet as DogecoinWallet;
|
||||||
return RoundedWhiteContainer(
|
return RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
@ -184,22 +192,40 @@ class _PaynymDetailsPopupState extends ConsumerState<DesktopPaynymDetails> {
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
if (!wallet.hasConnected(widget.accountLite.code))
|
||||||
child: PrimaryButton(
|
Expanded(
|
||||||
label: "Connect",
|
child: PrimaryButton(
|
||||||
buttonHeight: ButtonHeight.s,
|
label: "Connect",
|
||||||
icon: SvgPicture.asset(
|
buttonHeight: ButtonHeight.s,
|
||||||
Assets.svg.circlePlusFilled,
|
icon: SvgPicture.asset(
|
||||||
width: 16,
|
Assets.svg.circlePlusFilled,
|
||||||
height: 16,
|
width: 16,
|
||||||
color: Theme.of(context)
|
height: 16,
|
||||||
.extension<StackColors>()!
|
color: Theme.of(context)
|
||||||
.buttonTextPrimary,
|
.extension<StackColors>()!
|
||||||
|
.buttonTextPrimary,
|
||||||
|
),
|
||||||
|
iconSpacing: 6,
|
||||||
|
onPressed: _onConnectPressed,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (wallet.hasConnected(widget.accountLite.code))
|
||||||
|
Expanded(
|
||||||
|
child: PrimaryButton(
|
||||||
|
label: "Send",
|
||||||
|
buttonHeight: ButtonHeight.s,
|
||||||
|
icon: SvgPicture.asset(
|
||||||
|
Assets.svg.circleArrowUpRight,
|
||||||
|
width: 16,
|
||||||
|
height: 16,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.buttonTextPrimary,
|
||||||
|
),
|
||||||
|
iconSpacing: 6,
|
||||||
|
onPressed: _onSend,
|
||||||
),
|
),
|
||||||
iconSpacing: 6,
|
|
||||||
onPressed: _onConnectPressed,
|
|
||||||
),
|
),
|
||||||
),
|
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 20,
|
width: 20,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue