color fixes and hooked up add new wallet button on desktop

This commit is contained in:
julian 2022-09-19 13:48:55 -06:00
parent 2d677a5172
commit 0c9aa7872a
4 changed files with 50 additions and 53 deletions

View file

@ -1,5 +1,3 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.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/enums/coin_enum.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/desktop/desktop_app_bar.dart';
import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
@ -56,7 +55,7 @@ class _AddWalletViewState extends State<AddWalletView> {
Widget build(BuildContext context) {
debugPrint("BUILD: $runtimeType");
if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
if (Util.isDesktop) {
return DesktopScaffold(
appBar: const DesktopAppBar(
isCompactHeight: false,

View file

@ -16,7 +16,7 @@ class CoinWalletsTable extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
return Container(
decoration: BoxDecoration(
color: CFColors.background,
color: CFColors.popupBackground,
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),

View file

@ -1,4 +1,5 @@
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/utilities/cfcolors.dart';
import 'package:stackwallet/utilities/text_styles.dart';
@ -14,9 +15,7 @@ class MyWallets extends StatefulWidget {
class _MyWalletsState extends State<MyWallets> {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.greenAccent,
child: Padding(
return Padding(
padding: const EdgeInsets.all(24),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
@ -52,7 +51,7 @@ class _MyWalletsState extends State<MyWallets> {
BlueTextButton(
text: "Add new wallet",
onTap: () {
// TODO add wallet
Navigator.of(context).pushNamed(AddWalletView.routeName);
},
),
],
@ -64,7 +63,6 @@ class _MyWalletsState extends State<MyWallets> {
const WalletSummaryTable(),
],
),
),
);
}
}

View file

@ -41,7 +41,7 @@ class _WalletTableState extends ConsumerState<WalletSummaryTable> {
vertical: 16,
),
decoration: BoxDecoration(
color: CFColors.background,
color: CFColors.popupBackground,
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),