mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
Changed app font to Lato. Changes for anrdoid version
This commit is contained in:
parent
882c57a132
commit
ad3142aeb9
33 changed files with 75 additions and 103 deletions
|
@ -1,16 +1,10 @@
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.cakewallet.cake_wallet">
|
package="com.cakewallet.cake_wallet">
|
||||||
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
|
|
||||||
calls FlutterMain.startInitialization(this); in its onCreate method.
|
|
||||||
In most cases you can leave this as-is, but you if you want to provide
|
|
||||||
additional functionality it is fine to subclass or reimplement
|
|
||||||
FlutterApplication and put your custom class here. -->
|
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
|
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name="io.flutter.app.FlutterApplication"
|
|
||||||
android:label="Cake Wallet"
|
android:label="Cake Wallet"
|
||||||
android:icon="@mipmap/ic_launcher">
|
android:icon="@mipmap/ic_launcher">
|
||||||
<activity
|
<activity
|
||||||
|
@ -21,17 +15,27 @@
|
||||||
android:hardwareAccelerated="true"
|
android:hardwareAccelerated="true"
|
||||||
android:windowSoftInputMode="adjustResize"
|
android:windowSoftInputMode="adjustResize"
|
||||||
android:screenOrientation="portrait">
|
android:screenOrientation="portrait">
|
||||||
<!-- This keeps the window background of the activity showing
|
<!-- <meta-data-->
|
||||||
until Flutter renders its first frame. It can be removed if
|
<!-- android:name="io.flutter.embedding.android.NormalTheme"-->
|
||||||
there is no splash screen (such as the default splash screen
|
<!-- android:resource="@style/NormalTheme"-->
|
||||||
defined in @style/LaunchTheme). -->
|
<!-- />-->
|
||||||
|
<!-- Displays an Android View that continues showing the launch screen
|
||||||
|
Drawable until Flutter paints its first frame, then this splash
|
||||||
|
screen fades out. A splash screen is useful to avoid any visual
|
||||||
|
gap between the end of Android's launch screen and the painting of
|
||||||
|
Flutter's first frame. -->
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
|
android:name="io.flutter.embedding.android.SplashScreenDrawable"
|
||||||
android:value="true" />
|
android:resource="@drawable/launch_background"
|
||||||
|
/>
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
<meta-data
|
||||||
|
android:name="flutterEmbedding"
|
||||||
|
android:value="2" />
|
||||||
</application>
|
</application>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
package com.cakewallet.cake_wallet;
|
package com.cakewallet.cake_wallet;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import io.flutter.embedding.android.FlutterActivity;
|
||||||
import io.flutter.app.FlutterFragmentActivity;
|
|
||||||
import io.flutter.plugins.GeneratedPluginRegistrant;
|
|
||||||
|
|
||||||
public class MainActivity extends FlutterFragmentActivity {
|
public class MainActivity extends FlutterActivity {
|
||||||
@Override
|
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
GeneratedPluginRegistrant.registerWith(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
1
android/settings_aar.gradle
Normal file
1
android/settings_aar.gradle
Normal file
|
@ -0,0 +1 @@
|
||||||
|
include ':app'
|
Binary file not shown.
BIN
assets/fonts/Lato-Medium.ttf
Normal file
BIN
assets/fonts/Lato-Medium.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -4,7 +4,7 @@ import android.app.Activity
|
||||||
import android.os.AsyncTask
|
import android.os.AsyncTask
|
||||||
import android.os.Looper
|
import android.os.Looper
|
||||||
import android.os.Handler
|
import android.os.Handler
|
||||||
import android.os.Process
|
import android.os.Process
|
||||||
|
|
||||||
import io.flutter.plugin.common.MethodCall
|
import io.flutter.plugin.common.MethodCall
|
||||||
import io.flutter.plugin.common.MethodChannel
|
import io.flutter.plugin.common.MethodChannel
|
||||||
|
@ -22,10 +22,10 @@ class doAsync(val handler: () -> Unit) : AsyncTask<Void, Void, Void>() {
|
||||||
|
|
||||||
class CwMoneroPlugin: MethodCallHandler {
|
class CwMoneroPlugin: MethodCallHandler {
|
||||||
companion object {
|
companion object {
|
||||||
val moneroApi = MoneroApi()
|
// val moneroApi = MoneroApi()
|
||||||
val main = Handler(Looper.getMainLooper());
|
val main = Handler(Looper.getMainLooper());
|
||||||
|
|
||||||
init {
|
init {
|
||||||
System.loadLibrary("cw_monero")
|
System.loadLibrary("cw_monero")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,31 +43,31 @@ class CwMoneroPlugin: MethodCallHandler {
|
||||||
val password = call.argument("password") ?: ""
|
val password = call.argument("password") ?: ""
|
||||||
val useSSL = false
|
val useSSL = false
|
||||||
val isLightWallet = false
|
val isLightWallet = false
|
||||||
doAsync {
|
// doAsync {
|
||||||
try {
|
// try {
|
||||||
moneroApi.setNodeAddressJNI(uri, login, password, useSSL, isLightWallet)
|
// moneroApi.setNodeAddressJNI(uri, login, password, useSSL, isLightWallet)
|
||||||
main.post({
|
// main.post({
|
||||||
result.success(true)
|
// result.success(true)
|
||||||
});
|
// });
|
||||||
} catch(e: Throwable) {
|
// } catch(e: Throwable) {
|
||||||
main.post({
|
// main.post({
|
||||||
result.error("CONNECTION_ERROR", e.message, null)
|
// result.error("CONNECTION_ERROR", e.message, null)
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}.execute()
|
// }.execute()
|
||||||
}
|
}
|
||||||
if (call.method == "startSync") {
|
if (call.method == "startSync") {
|
||||||
doAsync {
|
// doAsync {
|
||||||
moneroApi.startSyncJNI()
|
// moneroApi.startSyncJNI()
|
||||||
main.post({
|
// main.post({
|
||||||
result.success(true)
|
// result.success(true)
|
||||||
});
|
// });
|
||||||
}.execute()
|
// }.execute()
|
||||||
}
|
}
|
||||||
if (call.method == "loadWallet") {
|
if (call.method == "loadWallet") {
|
||||||
val path = call.argument("path") ?: ""
|
val path = call.argument("path") ?: ""
|
||||||
val password = call.argument("password") ?: ""
|
val password = call.argument("password") ?: ""
|
||||||
moneroApi.loadWalletJNI(path, password)
|
// moneroApi.loadWalletJNI(path, password)
|
||||||
result.success(true)
|
result.success(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
package com.cakewallet.monero
|
|
||||||
|
|
||||||
class MoneroApi {
|
|
||||||
external fun setNodeAddressJNI(uri: String, login: String, password: String, use_ssl: Boolean, is_light_wallet: Boolean)
|
|
||||||
external fun connectToNodeJNI()
|
|
||||||
external fun startSyncJNI()
|
|
||||||
external fun loadWalletJNI(path: String, password: String)
|
|
||||||
|
|
||||||
companion object {
|
|
||||||
init {
|
|
||||||
System.loadLibrary("cw_monero")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -11,8 +11,6 @@ import 'package:flutter/services.dart';
|
||||||
|
|
||||||
int _boolToInt(bool value) => value ? 1 : 0;
|
int _boolToInt(bool value) => value ? 1 : 0;
|
||||||
|
|
||||||
final moneroAPIChannel = const MethodChannel('cw_monero');
|
|
||||||
|
|
||||||
final getFileNameNative = moneroApi
|
final getFileNameNative = moneroApi
|
||||||
.lookup<NativeFunction<get_filename>>('get_filename')
|
.lookup<NativeFunction<get_filename>>('get_filename')
|
||||||
.asFunction<GetFilename>();
|
.asFunction<GetFilename>();
|
||||||
|
|
|
@ -354,7 +354,7 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 3;
|
||||||
DEVELOPMENT_TEAM = 32J6BB6VUS;
|
DEVELOPMENT_TEAM = 32J6BB6VUS;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
|
@ -494,7 +494,7 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 3;
|
||||||
DEVELOPMENT_TEAM = 32J6BB6VUS;
|
DEVELOPMENT_TEAM = 32J6BB6VUS;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
|
@ -528,7 +528,7 @@
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 3;
|
||||||
DEVELOPMENT_TEAM = 32J6BB6VUS;
|
DEVELOPMENT_TEAM = 32J6BB6VUS;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
|
|
|
@ -76,7 +76,7 @@ abstract class BasePage extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18.0,
|
fontSize: 18.0,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
color: titleColor ??
|
color: titleColor ??
|
||||||
Theme.of(context).primaryTextTheme.title.color),
|
Theme.of(context).primaryTextTheme.title.color),
|
||||||
);
|
);
|
||||||
|
|
|
@ -33,7 +33,7 @@ class FilterWidget extends StatelessWidget {
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -74,7 +74,7 @@ class FilterWidget extends StatelessWidget {
|
||||||
color: Theme.of(context).accentTextTheme.subhead.color,
|
color: Theme.of(context).accentTextTheme.subhead.color,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
decoration: TextDecoration.none
|
decoration: TextDecoration.none
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -127,7 +127,7 @@ class FilterWidget extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).primaryTextTheme.title.color,
|
color: Theme.of(context).primaryTextTheme.title.color,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
decoration: TextDecoration.none
|
decoration: TextDecoration.none
|
||||||
),
|
),
|
||||||
|
|
|
@ -74,7 +74,7 @@ class CurrencyPickerState extends State<CurrencyPicker> {
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
color: Colors.white
|
color: Colors.white
|
||||||
|
@ -137,7 +137,7 @@ class CurrencyPickerState extends State<CurrencyPicker> {
|
||||||
item.toString(),
|
item.toString(),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
color: textColor
|
color: textColor
|
||||||
|
|
|
@ -33,7 +33,7 @@ class InformationPage extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
color: Theme.of(context).accentTextTheme.caption.decorationColor
|
color: Theme.of(context).accentTextTheme.caption.decorationColor
|
||||||
),
|
),
|
||||||
|
|
|
@ -53,7 +53,7 @@ class MoneroAccountListPage extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
color: Colors.white
|
color: Colors.white
|
||||||
),
|
),
|
||||||
|
@ -141,7 +141,7 @@ class MoneroAccountListPage extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
),
|
),
|
||||||
|
|
|
@ -32,7 +32,7 @@ class AccountTile extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
color: textColor,
|
color: textColor,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
),
|
),
|
||||||
|
|
|
@ -42,7 +42,7 @@ class WalletRestorePage extends BasePage {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18.0,
|
fontSize: 18.0,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
color: titleColor ??
|
color: titleColor ??
|
||||||
Theme.of(context).primaryTextTheme.title.color),
|
Theme.of(context).primaryTextTheme.title.color),
|
||||||
));
|
));
|
||||||
|
|
|
@ -77,7 +77,7 @@ class SeedLanguagePickerState extends State<SeedLanguagePicker> {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
color: Colors.white
|
color: Colors.white
|
||||||
),
|
),
|
||||||
|
@ -172,7 +172,7 @@ class SeedLanguagePickerState extends State<SeedLanguagePicker> {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
color: textColor
|
color: textColor
|
||||||
),
|
),
|
||||||
|
|
|
@ -55,7 +55,7 @@ class ConfirmSendingAlert extends BaseAlertDialog {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
color: Theme.of(context).primaryTextTheme.title.color,
|
color: Theme.of(context).primaryTextTheme.title.color,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
),
|
),
|
||||||
|
@ -65,7 +65,7 @@ class ConfirmSendingAlert extends BaseAlertDialog {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
color: Theme.of(context).primaryTextTheme.title.color,
|
color: Theme.of(context).primaryTextTheme.title.color,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
),
|
),
|
||||||
|
@ -81,7 +81,7 @@ class ConfirmSendingAlert extends BaseAlertDialog {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
color: Theme.of(context).primaryTextTheme.title.color,
|
color: Theme.of(context).primaryTextTheme.title.color,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
),
|
),
|
||||||
|
@ -91,7 +91,7 @@ class ConfirmSendingAlert extends BaseAlertDialog {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
color: Theme.of(context).primaryTextTheme.title.color,
|
color: Theme.of(context).primaryTextTheme.title.color,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
),
|
),
|
||||||
|
|
|
@ -89,7 +89,7 @@ class WalletMenuAlert extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).primaryTextTheme.title.color,
|
color: Theme.of(context).primaryTextTheme.title.color,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
decoration: TextDecoration.none
|
decoration: TextDecoration.none
|
||||||
),
|
),
|
||||||
|
|
|
@ -17,7 +17,7 @@ class BaseAlertDialog extends StatelessWidget {
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: Theme.of(context).primaryTextTheme.title.color,
|
color: Theme.of(context).primaryTextTheme.title.color,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
|
@ -32,7 +32,7 @@ class BaseAlertDialog extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
color: Theme.of(context).primaryTextTheme.title.color,
|
color: Theme.of(context).primaryTextTheme.title.color,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
),
|
),
|
||||||
|
@ -59,7 +59,7 @@ class BaseAlertDialog extends StatelessWidget {
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
|
@ -84,7 +84,7 @@ class BaseAlertDialog extends StatelessWidget {
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
|
|
|
@ -68,7 +68,7 @@ class CheckboxWidgetState extends State<CheckboxWidget> {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).primaryTextTheme.title.color,
|
color: Theme.of(context).primaryTextTheme.title.color,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
decoration: TextDecoration.none
|
decoration: TextDecoration.none
|
||||||
),
|
),
|
||||||
|
|
|
@ -70,7 +70,7 @@ class PickerState<Item> extends State<Picker> {
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
color: Colors.white
|
color: Colors.white
|
||||||
|
@ -135,7 +135,7 @@ class PickerState<Item> extends State<Picker> {
|
||||||
item.toString(),
|
item.toString(),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: textColor,
|
color: textColor,
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
|
@ -160,7 +160,7 @@ class PickerState<Item> extends State<Picker> {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
decoration: TextDecoration.none,
|
decoration: TextDecoration.none,
|
||||||
color: Theme.of(context).primaryTextTheme
|
color: Theme.of(context).primaryTextTheme
|
||||||
.title.color
|
.title.color
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'palette.dart';
|
||||||
class Themes {
|
class Themes {
|
||||||
|
|
||||||
static final ThemeData lightTheme = ThemeData(
|
static final ThemeData lightTheme = ThemeData(
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
brightness: Brightness.light,
|
brightness: Brightness.light,
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
accentColor: Palette.blueCraiola, // first gradient color
|
accentColor: Palette.blueCraiola, // first gradient color
|
||||||
|
@ -179,7 +179,7 @@ class Themes {
|
||||||
|
|
||||||
|
|
||||||
static final ThemeData darkTheme = ThemeData(
|
static final ThemeData darkTheme = ThemeData(
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Lato',
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
backgroundColor: PaletteDark.backgroundColor,
|
backgroundColor: PaletteDark.backgroundColor,
|
||||||
accentColor: PaletteDark.backgroundColor, // first gradient color
|
accentColor: PaletteDark.backgroundColor, // first gradient color
|
||||||
|
|
16
pubspec.yaml
16
pubspec.yaml
|
@ -11,7 +11,7 @@ description: Cake Wallet.
|
||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.0.5+5
|
version: 4.0.3
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.7.0 <3.0.0"
|
sdk: ">=2.7.0 <3.0.0"
|
||||||
|
@ -104,19 +104,9 @@ flutter:
|
||||||
- family: Lato
|
- family: Lato
|
||||||
fonts:
|
fonts:
|
||||||
- asset: assets/fonts/Lato-Regular.ttf
|
- asset: assets/fonts/Lato-Regular.ttf
|
||||||
|
- asset: assets/fonts/Lato-Medium.ttf
|
||||||
|
- asset: assets/fonts/Lato-SemiBold.ttf
|
||||||
- asset: assets/fonts/Lato-Bold.ttf
|
- asset: assets/fonts/Lato-Bold.ttf
|
||||||
- asset: assets/fonts/Lato-Semibold.ttf
|
|
||||||
- family: Montserrat
|
|
||||||
fonts:
|
|
||||||
- asset: assets/fonts/Montserrat-Regular.ttf
|
|
||||||
- asset: assets/fonts/Montserrat-Bold.ttf
|
|
||||||
- asset: assets/fonts/Montserrat-SemiBold.ttf
|
|
||||||
- family: Poppins
|
|
||||||
fonts:
|
|
||||||
- asset: assets/fonts/Poppins-Regular.ttf
|
|
||||||
- asset: assets/fonts/Poppins-Medium.ttf
|
|
||||||
- asset: assets/fonts/Poppins-SemiBold.ttf
|
|
||||||
- asset: assets/fonts/Poppins-Bold.ttf
|
|
||||||
|
|
||||||
|
|
||||||
# To add assets to your application, add an assets section, like this:
|
# To add assets to your application, add an assets section, like this:
|
||||||
|
|
Loading…
Reference in a new issue