mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-25 04:49:36 +00:00
48 lines
1 KiB
Dart
48 lines
1 KiB
Dart
/*
|
|
* This file is part of Stack Wallet.
|
|
*
|
|
* Copyright (c) 2023 Cypher Stack
|
|
* All Rights Reserved.
|
|
* The code is distributed under GPLv3 license, see LICENSE file for details.
|
|
* Generated by Cypher Stack on 2023-05-26
|
|
*
|
|
*/
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
// todo: delete this map (example)
|
|
final map = {
|
|
"name": "Dark",
|
|
"coinColors": {
|
|
"bitcoin": "0xFF267352",
|
|
},
|
|
"assets": {
|
|
"circleLock": "svg/somerandomnamecreatedbythemecreator.svg",
|
|
},
|
|
"colors": {
|
|
"background": "0xFF848383",
|
|
},
|
|
"gradientBackground": {
|
|
"gradientType": "linear",
|
|
"begin": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
},
|
|
"end": {
|
|
"x": -1.0,
|
|
"y": 1.0,
|
|
},
|
|
"colors": [
|
|
"0xFF638227",
|
|
"0xFF632827",
|
|
]
|
|
}
|
|
};
|
|
|
|
extension BoxShadowExt on BoxShadow {
|
|
static BoxShadow fromJson(Map<String, dynamic> json) => BoxShadow(
|
|
color: Color(int.parse(json["color"] as String)),
|
|
spreadRadius: json["spread_radius"] as double,
|
|
blurRadius: json["blur_radius"] as double,
|
|
);
|
|
}
|