basic desktop send layout

This commit is contained in:
julian 2022-10-26 11:59:54 -06:00
parent ab5190562d
commit aa8b722174
3 changed files with 1208 additions and 38 deletions

View file

@ -1,6 +1,8 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/svg.dart';
import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/wallet_view/receive/desktop_receive.dart';
import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/wallet_view/send/desktop_send.dart';
import 'package:stackwallet/providers/providers.dart';
import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/constants.dart';
@ -171,11 +173,13 @@ class _DesktopWalletViewState extends ConsumerState<DesktopWalletView> {
),
Expanded(
child: Row(
children: const [
children: [
Expanded(
child: MyWallet(),
child: MyWallet(
walletId: walletId,
),
),
SizedBox(
const SizedBox(
width: 16,
),
Expanded(
@ -192,7 +196,12 @@ class _DesktopWalletViewState extends ConsumerState<DesktopWalletView> {
}
class MyWallet extends StatefulWidget {
const MyWallet({Key? key}) : super(key: key);
const MyWallet({
Key? key,
required this.walletId,
}) : super(key: key);
final String walletId;
@override
State<MyWallet> createState() => _MyWalletState();
@ -246,10 +255,15 @@ class _MyWalletState extends State<MyWallet> {
Tab(text: "Receive"),
],
),
const Expanded(
Expanded(
child: TabBarView(
children: [
DesktopSend(),
Padding(
padding: const EdgeInsets.all(20),
child: DesktopSend(
walletId: widget.walletId,
),
),
DesktopReceive(),
],
),
@ -264,38 +278,6 @@ class _MyWalletState extends State<MyWallet> {
}
}
class DesktopReceive extends StatefulWidget {
const DesktopReceive({Key? key}) : super(key: key);
@override
State<DesktopReceive> createState() => _DesktopReceiveState();
}
class _DesktopReceiveState extends State<DesktopReceive> {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.green,
);
}
}
class DesktopSend extends StatefulWidget {
const DesktopSend({Key? key}) : super(key: key);
@override
State<DesktopSend> createState() => _DesktopSendState();
}
class _DesktopSendState extends State<DesktopSend> {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.red,
);
}
}
class RecentDesktopTransactions extends StatefulWidget {
const RecentDesktopTransactions({Key? key}) : super(key: key);

View file

@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
class DesktopReceive extends StatefulWidget {
const DesktopReceive({Key? key}) : super(key: key);
@override
State<DesktopReceive> createState() => _DesktopReceiveState();
}
class _DesktopReceiveState extends State<DesktopReceive> {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.green,
);
}
}

File diff suppressed because it is too large Load diff