mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-05-02 19:02:17 +00:00
color fixes and hooked up add new wallet button on desktop
This commit is contained in:
parent
2d677a5172
commit
0c9aa7872a
4 changed files with 50 additions and 53 deletions
lib
pages/add_wallet_views/add_wallet_view
pages_desktop_specific/home/my_stack_view
|
@ -1,5 +1,3 @@
|
||||||
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:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
|
@ -12,6 +10,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
|
||||||
|
@ -56,7 +55,7 @@ class _AddWalletViewState extends State<AddWalletView> {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
|
if (Util.isDesktop) {
|
||||||
return DesktopScaffold(
|
return DesktopScaffold(
|
||||||
appBar: const DesktopAppBar(
|
appBar: const DesktopAppBar(
|
||||||
isCompactHeight: false,
|
isCompactHeight: false,
|
||||||
|
|
|
@ -16,7 +16,7 @@ class CoinWalletsTable extends ConsumerWidget {
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: CFColors.background,
|
color: CFColors.popupBackground,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:stackwallet/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart';
|
||||||
import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/wallet_summary_table.dart';
|
import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/wallet_summary_table.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
|
@ -14,56 +15,53 @@ class MyWallets extends StatefulWidget {
|
||||||
class _MyWalletsState extends State<MyWallets> {
|
class _MyWalletsState extends State<MyWallets> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Padding(
|
||||||
color: Colors.greenAccent,
|
padding: const EdgeInsets.all(24),
|
||||||
child: Padding(
|
child: Column(
|
||||||
padding: const EdgeInsets.all(24),
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
child: Column(
|
children: [
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
Text(
|
||||||
children: [
|
"Favorite wallets",
|
||||||
Text(
|
style: STextStyles.desktopTextExtraSmall.copyWith(
|
||||||
"Favorite wallets",
|
color: CFColors.textFieldActiveSearchIconRight,
|
||||||
style: STextStyles.desktopTextExtraSmall.copyWith(
|
),
|
||||||
color: CFColors.textFieldActiveSearchIconRight,
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 20,
|
||||||
|
),
|
||||||
|
// TODO favorites grid
|
||||||
|
Container(
|
||||||
|
color: Colors.deepPurpleAccent,
|
||||||
|
height: 210,
|
||||||
|
),
|
||||||
|
|
||||||
|
const SizedBox(
|
||||||
|
height: 40,
|
||||||
|
),
|
||||||
|
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
"All wallets",
|
||||||
|
style: STextStyles.desktopTextExtraSmall.copyWith(
|
||||||
|
color: CFColors.textFieldActiveSearchIconRight,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
const Spacer(),
|
||||||
const SizedBox(
|
BlueTextButton(
|
||||||
height: 20,
|
text: "Add new wallet",
|
||||||
),
|
onTap: () {
|
||||||
// TODO favorites grid
|
Navigator.of(context).pushNamed(AddWalletView.routeName);
|
||||||
Container(
|
},
|
||||||
color: Colors.deepPurpleAccent,
|
),
|
||||||
height: 210,
|
],
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 40,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
const WalletSummaryTable(),
|
||||||
Row(
|
],
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
"All wallets",
|
|
||||||
style: STextStyles.desktopTextExtraSmall.copyWith(
|
|
||||||
color: CFColors.textFieldActiveSearchIconRight,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const Spacer(),
|
|
||||||
BlueTextButton(
|
|
||||||
text: "Add new wallet",
|
|
||||||
onTap: () {
|
|
||||||
// TODO add wallet
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
|
|
||||||
const SizedBox(
|
|
||||||
height: 20,
|
|
||||||
),
|
|
||||||
const WalletSummaryTable(),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ class _WalletTableState extends ConsumerState<WalletSummaryTable> {
|
||||||
vertical: 16,
|
vertical: 16,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: CFColors.background,
|
color: CFColors.popupBackground,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue