mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 09:17:35 +00:00
02f53055b1
* init commit * onramper * moonPay * dfx provider * meld * dfx payment methods * fiat buy credentials * moonpay payment method * payment loading state * dfx sell quote * onramper launch trade * meld launch trade * country picker * update option tile * buy/sell action * meld refactor * update pr_test_build.yml * ui fixes * revert country picker commit * update the ui * recommended providers * payment method [skip ci] * provider option tile * remove buy action * minor fixes * update the best rate when the amount is changed * fixes for currency title * fix icons * code refactoring * null issue * code review fixes * Update pr_test_build_linux.yml * Update meld_buy_provider.dart * Update meld_buy_provider.dart * add show wallets action * remove default sell / buy provider setting * localisation * providerTypes * icons * remove duplicate file [skip ci] * minor changes [skip ci] * fixes from review * disable dfx for non eur/chf currencies fix providers to be fetched with the selected currency * fix breaking from loop if one element failed * fix minor naming issue from merging conflicts * add fiat check for moonpay * fix address validation * merge conflict * fix destination and source currency * minor fix * minor fix * update the flow * fix bch address format * fix wallet addresses * fix initial fetching amount. * Update address_validator.dart * review comments * revert switch case to return null * minor fix --------- Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
61 lines
1.7 KiB
Dart
61 lines
1.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
const latoFont = "Lato";
|
|
|
|
TextStyle textXxSmall({Color? color}) => _cakeRegular(10, color);
|
|
|
|
TextStyle textXxSmallSemiBold({Color? color}) => _cakeSemiBold(10, color);
|
|
|
|
TextStyle textXSmall({Color? color}) => _cakeRegular(12, color);
|
|
|
|
TextStyle textXSmallSemiBold({Color? color}) => _cakeSemiBold(12, color);
|
|
|
|
TextStyle textSmall({Color? color}) => _cakeRegular(14, color);
|
|
|
|
TextStyle textSmallSemiBold({Color? color}) => _cakeSemiBold(14, color);
|
|
|
|
TextStyle textMedium({Color? color}) => _cakeRegular(16, color);
|
|
|
|
TextStyle textMediumBold({Color? color}) => _cakeBold(16, color);
|
|
|
|
TextStyle textMediumSemiBold({Color? color}) => _cakeSemiBold(22, color);
|
|
|
|
TextStyle textLarge({Color? color}) => _cakeRegular(18, color);
|
|
|
|
TextStyle textLargeBold({Color? color}) => _cakeBold(18, color);
|
|
|
|
TextStyle textLargeSemiBold({Color? color}) => _cakeSemiBold(24, color);
|
|
|
|
TextStyle textXLarge({Color? color}) => _cakeRegular(32, color);
|
|
|
|
TextStyle textXLargeSemiBold({Color? color}) => _cakeSemiBold(32, color);
|
|
|
|
TextStyle _cakeRegular(double size, Color? color) => _textStyle(
|
|
size: size,
|
|
fontWeight: FontWeight.normal,
|
|
color: color,
|
|
);
|
|
|
|
TextStyle _cakeBold(double size, Color? color) => _textStyle(
|
|
size: size,
|
|
fontWeight: FontWeight.w900,
|
|
color: color,
|
|
);
|
|
|
|
TextStyle _cakeSemiBold(double size, Color? color) => _textStyle(
|
|
size: size,
|
|
fontWeight: FontWeight.w700,
|
|
color: color,
|
|
);
|
|
|
|
TextStyle _textStyle({
|
|
required double size,
|
|
required FontWeight fontWeight,
|
|
Color? color,
|
|
}) =>
|
|
TextStyle(
|
|
fontFamily: latoFont,
|
|
fontSize: size,
|
|
fontWeight: fontWeight,
|
|
color: color ?? Colors.white,
|
|
);
|