-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Added the UI to display the vectors on prefix Icon Click. #972
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything else LGTM! Great job!
lib/constants.dart
Outdated
@@ -14,3 +14,46 @@ const String aniRight = 'assets/animations/ic_anim_right.gif'; | |||
const String effFlash = 'assets/effects/ic_effect_flash.gif'; | |||
const String effInvert = 'assets/effects/ic_effect_invert.gif'; | |||
const String effMarque = 'assets/effects/ic_effect_marquee.gif'; | |||
|
|||
//list containing the location of all the assets | |||
List<String> vectors = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of maintaining the list of vectors. Can you try to read all vectors from this location? We don't want to maintain a list as well as the asset where we could infer by reading the AssetManifest.json
|
||
//function to load and scale the svg according to the badge size | ||
Future<ui.Image> scaleSVG(String svg) async { | ||
late ui.Picture picture; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sharing the picture when not designing the class to handle per image operations would be confusing. If this class is going to process one image anyway. Remove gateways to loadSVG, scaleSVG, etc by making them private
lib/view/splashscreen.dart
Outdated
_startImageCaching(); | ||
} | ||
|
||
Future<void> _startImageCaching() async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We wanted to remove the splash screen. Do we want to still want to process the images here?
#954