mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
desktop wallet send/receive tabview
This commit is contained in:
parent
d06219d3d9
commit
8116b267c1
1 changed files with 72 additions and 1 deletions
|
@ -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<MyWallet> {
|
|||
Expanded(
|
||||
child: RoundedWhiteContainer(
|
||||
padding: const EdgeInsets.all(0),
|
||||
child: Container(),
|
||||
child: DefaultTabController(
|
||||
length: 2,
|
||||
child: Column(
|
||||
children: [
|
||||
TabBar(
|
||||
indicatorColor: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.accentColorBlue,
|
||||
labelStyle: STextStyles.desktopTextExtraSmall(context),
|
||||
labelColor: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.accentColorBlue,
|
||||
unselectedLabelColor: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.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<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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue