-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8c9168
commit 8208505
Showing
67 changed files
with
557 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:dart_leap/dart_leap.dart'; | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
class ColorJsonConverter extends JsonConverter<SRGBColor, int> { | ||
const ColorJsonConverter(); | ||
|
||
@override | ||
SRGBColor fromJson(int json) { | ||
return SRGBColor(json); | ||
} | ||
|
||
@override | ||
int toJson(SRGBColor object) { | ||
return object.value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import 'package:dart_leap/dart_leap.dart'; | ||
|
||
class BasicColors { | ||
static const white = 0xFFFFFFFF; | ||
static const light = 0xFFD9D9D9; | ||
static const black = 0xFF000000; | ||
static const dark = 0xFF1A1A1A; | ||
static const red = 0xFFF44336; | ||
static const blue = 0xFF2196F3; | ||
static const transparent = 0x00000000; | ||
static const light = SRGBColor(0xFFD9D9D9); | ||
static const dark = SRGBColor(0xFF1A1A1A); | ||
static const red = SRGBColor(0xFFF44336); | ||
static const blue = SRGBColor(0xFF2196F3); | ||
|
||
const BasicColors._(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.