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

Figma generator #1

Closed
wants to merge 12 commits into from
Closed

Figma generator #1

wants to merge 12 commits into from

Conversation

jlukas99
Copy link
Collaborator

No description provided.

Comment on lines 40 to 42
final s = ((lineHeight ?? 1) / (fontSize ?? 1)).toStringAsFixed(2);
final returnValue = double.parse(s);
return returnValue;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not round it. here and just use toStringAsFixed(2) if needed when it is converted to string

@jlukas99
Copy link
Collaborator Author

jlukas99 commented Jun 1, 2022

I will add tommorow example and pictures to the readme

@@ -0,0 +1 @@
2.10.1
Copy link
Contributor

@Axot017 Axot017 Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it shouldn't be version controlled, as well as other files form .dart_tools

# Generated by pub on 2022-05-30 12:26:33.147476.
args:file:///Users/jlukas/.pub-cache/hosted/pub.dartlang.org/args-2.3.1/lib/
async:file:///Users/jlukas/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/
boolean_selector:file:///Users/jlukas/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
Copy link
Contributor

@Axot017 Axot017 Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file also shouldn't version controlled

Copy link
Collaborator

@Rongix Rongix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are few linter warnings to be fixed, these are not crucial tho and can be fixed later (e.g. sorting constructors first (and factories) )
There are warnings about prints in the code. I think we can replace 'print' with 'log' from dart:developer

Comment on lines 16 to 17
flutter:
sdk: flutter
Copy link
Collaborator

@Rongix Rongix Jun 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be removed and it's not used

@Rongix Rongix changed the base branch from main to develop June 28, 2022 10:20
@jlukas99 jlukas99 closed this Oct 6, 2022
@jlukas99 jlukas99 deleted the feature/figma-generator branch October 6, 2022 11:44
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.

None yet

3 participants