From 8116b267c1c60c9aeee4f8c1f83f0ae981f8dfeb Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 14 Oct 2022 10:49:46 -0600 Subject: [PATCH] desktop wallet send/receive tabview --- .../wallet_view/desktop_wallet_view.dart | 73 ++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/lib/pages_desktop_specific/home/my_stack_view/wallet_view/desktop_wallet_view.dart b/lib/pages_desktop_specific/home/my_stack_view/wallet_view/desktop_wallet_view.dart index 785b94dc4..f8cc7e2dc 100644 --- a/lib/pages_desktop_specific/home/my_stack_view/wallet_view/desktop_wallet_view.dart +++ b/lib/pages_desktop_specific/home/my_stack_view/wallet_view/desktop_wallet_view.dart @@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_svg/svg.dart'; import 'package:stackwallet/providers/providers.dart'; import 'package:stackwallet/utilities/assets.dart'; +import 'package:stackwallet/utilities/constants.dart'; import 'package:stackwallet/utilities/text_styles.dart'; import 'package:stackwallet/utilities/theme/stack_colors.dart'; import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart'; @@ -217,7 +218,45 @@ class _MyWalletState extends State { Expanded( child: RoundedWhiteContainer( padding: const EdgeInsets.all(0), - child: Container(), + child: DefaultTabController( + length: 2, + child: Column( + children: [ + TabBar( + indicatorColor: Theme.of(context) + .extension()! + .accentColorBlue, + labelStyle: STextStyles.desktopTextExtraSmall(context), + labelColor: Theme.of(context) + .extension()! + .accentColorBlue, + unselectedLabelColor: Theme.of(context) + .extension()! + .textSubtitle1, + labelPadding: const EdgeInsets.symmetric( + vertical: 6, + ), + splashBorderRadius: BorderRadius.vertical( + top: Radius.circular( + Constants.size.circularBorderRadius, + ), + ), + tabs: const [ + Tab(text: "Send"), + Tab(text: "Receive"), + ], + ), + const Expanded( + child: TabBarView( + children: [ + DesktopSend(), + DesktopReceive(), + ], + ), + ), + ], + ), + ), ), ), ], @@ -225,6 +264,38 @@ class _MyWalletState extends State { } } +class DesktopReceive extends StatefulWidget { + const DesktopReceive({Key? key}) : super(key: key); + + @override + State createState() => _DesktopReceiveState(); +} + +class _DesktopReceiveState extends State { + @override + Widget build(BuildContext context) { + return Container( + color: Colors.green, + ); + } +} + +class DesktopSend extends StatefulWidget { + const DesktopSend({Key? key}) : super(key: key); + + @override + State createState() => _DesktopSendState(); +} + +class _DesktopSendState extends State { + @override + Widget build(BuildContext context) { + return Container( + color: Colors.red, + ); + } +} + class RecentDesktopTransactions extends StatefulWidget { const RecentDesktopTransactions({Key? key}) : super(key: key);