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,56 +15,53 @@ class MyWallets extends StatefulWidget {
class _MyWalletsState extends State<MyWallets> {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.greenAccent,
child: Padding(
padding: const EdgeInsets.all(24),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Favorite wallets",
style: STextStyles.desktopTextExtraSmall.copyWith(
color: CFColors.textFieldActiveSearchIconRight,
return Padding(
padding: const EdgeInsets.all(24),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Favorite wallets",
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 SizedBox(
height: 20,
),
// TODO favorites grid
Container(
color: Colors.deepPurpleAccent,
height: 210,
),
const Spacer(),
BlueTextButton(
text: "Add new wallet",
onTap: () {
Navigator.of(context).pushNamed(AddWalletView.routeName);
},
),
],
),
const SizedBox(
height: 40,
),
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(),
],
),
const SizedBox(
height: 20,
),
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,
),