-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add catalyst voices assets pub (#154)
* wip * Update analysis_options.1.0.0.yaml * feat: update flutter packages * feat: add CatalystImage * Update README.md * Update catalyst_image.dart * Update project.dic * add example for catalyst_voices_assets * update example
- Loading branch information
Showing
48 changed files
with
650 additions
and
23 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
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,6 +1,6 @@ | ||
import 'package:catalyst_voices/app/app.dart'; | ||
import 'package:catalyst_voices/bootstrap.dart'; | ||
|
||
void main() { | ||
bootstrap(() => const App()); | ||
void main() async { | ||
await bootstrap(() => const App()); | ||
} |
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,6 +1,6 @@ | ||
import 'package:catalyst_voices/app/app.dart'; | ||
import 'package:catalyst_voices/bootstrap.dart'; | ||
|
||
void main() { | ||
bootstrap(() => const App()); | ||
void main() async { | ||
await bootstrap(() => const App()); | ||
} |
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,6 +1,6 @@ | ||
import 'package:catalyst_voices/app/app.dart'; | ||
import 'package:catalyst_voices/bootstrap.dart'; | ||
|
||
void main() { | ||
bootstrap(() => const App()); | ||
void main() async { | ||
await bootstrap(() => const App()); | ||
} |
Empty file.
43 changes: 43 additions & 0 deletions
43
catalyst_voices/packages/catalyst_voices_assets/.gitignore
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,43 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# VSCode related | ||
.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
pubspec.lock | ||
|
||
# Web related | ||
lib/generated_plugin_registrant.dart | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
# Test related | ||
coverage |
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,5 @@ | ||
# Catalyst Voices Assets | ||
|
||
```sh | ||
dart run build_runner build | ||
``` |
12 changes: 12 additions & 0 deletions
12
catalyst_voices/packages/catalyst_voices_assets/assets/colors/colors.xml
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,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="white">#FFFFFF</color> | ||
<color name="dark_background ">#000000</color> | ||
<color name="purple">#512DA8</color> | ||
<color name="purple_gradient_start">#673AB7</color> | ||
<color name="purple_gradient_stop">#512DA8</color> | ||
<color name="dark_card">#222126</color> | ||
<color name="green">#7CAE7A</color> | ||
<color name="red">#B02E0C</color> | ||
<color name="today">#565656</color> | ||
</resources> |
Binary file added
BIN
+1.74 MB
catalyst_voices/packages/catalyst_voices_assets/assets/fonts/SF-Pro-Rounded-Regular.ttf
Binary file not shown.
Binary file added
BIN
+47 KB
catalyst_voices/packages/catalyst_voices_assets/assets/images/dummy_catalyst_voices.webp
Binary file not shown.
43 changes: 43 additions & 0 deletions
43
catalyst_voices/packages/catalyst_voices_assets/example/.gitignore
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,43 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
# Android Studio will place build artifacts here | ||
/android/app/debug | ||
/android/app/profile | ||
/android/app/release |
30 changes: 30 additions & 0 deletions
30
catalyst_voices/packages/catalyst_voices_assets/example/.metadata
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,30 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: "db7ef5bf9f59442b0e200a90587e8fa5e0c6336a" | ||
channel: "stable" | ||
|
||
project_type: app | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a | ||
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a | ||
- platform: web | ||
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a | ||
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
47 changes: 47 additions & 0 deletions
47
catalyst_voices/packages/catalyst_voices_assets/example/README.md
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,47 @@ | ||
# Catalyst Voices Assets Example | ||
|
||
This is an example of how to use the Catalyst Voices Assets package. | ||
|
||
## Usage | ||
|
||
```dart | ||
import 'package:catalyst_voices_assets/catalyst_voices_assets.dart'; | ||
import 'package:flutter/material.dart'; | ||
void main() => runApp(Example()); | ||
final class Example extends StatelessWidget { | ||
const Example({super.key}); | ||
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
home: Scaffold( | ||
body: Center( | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
const Text( | ||
'Catalyst Assets', | ||
style: TextStyle( | ||
color: VoicesColors.purpleGradientStart, | ||
fontFamily: VoicesFonts.sFPro, | ||
fontSize: 32, | ||
), | ||
), | ||
const SizedBox(height: 20), | ||
SizedBox( | ||
height: 200, | ||
width: 200, | ||
child: CatalystImage.asset( | ||
VoicesAssets.images.dummyCatalystVoices.path, | ||
), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} | ||
``` |
39 changes: 39 additions & 0 deletions
39
catalyst_voices/packages/catalyst_voices_assets/example/lib/src/main.dart
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,39 @@ | ||
import 'package:catalyst_voices_assets/catalyst_voices_assets.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
void main() => runApp(Example()); | ||
|
||
final class Example extends StatelessWidget { | ||
const Example({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
home: Scaffold( | ||
body: Center( | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
const Text( | ||
'Catalyst Assets', | ||
style: TextStyle( | ||
color: VoicesColors.purpleGradientStart, | ||
fontFamily: VoicesFonts.sFPro, | ||
fontSize: 32, | ||
), | ||
), | ||
const SizedBox(height: 20), | ||
SizedBox( | ||
height: 200, | ||
width: 200, | ||
child: CatalystImage.asset( | ||
VoicesAssets.images.dummyCatalystVoices.path, | ||
), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
catalyst_voices/packages/catalyst_voices_assets/example/pubspec.yaml
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,17 @@ | ||
name: catalyst_voices_assets_example | ||
description: A Catalyst Voices Assets Example. | ||
version: 0.1.0+1 | ||
publish_to: none | ||
|
||
environment: | ||
sdk: ">=3.2.0 <4.0.0" | ||
flutter: 3.16.0 | ||
|
||
dependencies: | ||
catalyst_voices_assets: | ||
path: ../ | ||
flutter: | ||
sdk: flutter | ||
|
||
flutter: | ||
uses-material-design: true |
Binary file added
BIN
+917 Bytes
catalyst_voices/packages/catalyst_voices_assets/example/web/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.17 KB
catalyst_voices/packages/catalyst_voices_assets/example/web/icons/Icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.06 KB
catalyst_voices/packages/catalyst_voices_assets/example/web/icons/Icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.46 KB
..._voices/packages/catalyst_voices_assets/example/web/icons/Icon-maskable-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.5 KB
..._voices/packages/catalyst_voices_assets/example/web/icons/Icon-maskable-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.