Skip to content
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

Merged
merged 7 commits into from
Jul 17, 2024

Conversation

Jhalakupadhyay
Copy link
Contributor

#954

  1. Added the Gridview to display the vectors on prefix Icon click.
  2. Display of vectors on the text field when selected by the user.
  3. adding a placeholder for the images in the text controller.

Copy link
Collaborator

@adityastic adityastic left a 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!

@@ -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 = [
Copy link
Collaborator

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;
Copy link
Collaborator

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

_startImageCaching();
}

Future<void> _startImageCaching() async {
Copy link
Collaborator

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?

@adityastic adityastic merged commit 28f7c78 into fossasia:flutter_app Jul 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants