I have made a design in Figma that I wanted to rebuild using Flutter.
I'm having a hard time choosing the right fontsize in Flutter that corresponds to the fontsize I
used in Figma.
For example in Figma I chose fontsize 144 for a title and it looked alright, but when I chose this fontsize for that title in Flutter, it looks way to big. So how do these fontsizes from Figma and Flutter compare?
Thanks in advance!
Yes, The figam and flutter sizes do not correspond. It applies to other tools like Sketch or AdobeXD. Your job as a developer is also to understand what ahas been made in figma or sketch or adobe XD to be able to show the proper size in flutter honestly.
Also personaly, I think Flutter is great because you don't really need a tool like Figma to right and do beautiful designs because of the feature hot reload. You can just - if you want to develop an app for personal use and it's not a part of a bigger project with designers in the team - use the hot reload feature to look directly how your app will look.
Related
I am trying to display on a flutter app (here on the desktop version) this kind of interactive svg:
Svg flame graph
The problem is that since Flutter doesn't support svg by default, they only a few solution to it. The flutter_svg package doesn't work in my case because it render a picture. So the interactivity will not work. We can't click on the svg and have the data changing according to where we clicked.
In addition, we have a potential search with text that is included in this svg. Finally, this svg provided is only an example but in my project a svg of this type will be generated depending on the user need. So, I can't "hard code" the svg in my project.
So, do you have any ideas how to display that kind of svg in an flutter app?
I'd like to add custom markers with text labels on my map. I can use MapViewPins for this, but they "tremble" when map is being moved. Even one MapViewPin behaves like this in official Here example, so it is probably not an optimization issue.
When i load PNG image and use it as a MapMarker, it works perfectly. But i don't know how to add text to a marker.
I am using Here SDK for Flutter (Navigate Edition) 4.12.4.0 with Flutter 3.3.2
GIF below is an example. Cyan circles are MapMarkers, markers with icons and label are MapViewPins. Is there any solution to this problem?
Unfortunately, the MapViewPins, being widgets embedded in the MapView surface, need to be relocated to the fixed coordinates every time the map is interacted with by gestures, which is why you notice this "strange" behavior.
However, what you mention about using MapMarkers would be the best solution but in this case instead of using PNG files, you could use SVG files in which you enter the text you want to display.
There is currently no other way available to do what you mention using the HERE SDK (Navigate Edition).
Here is a link to our most up-to-date HERE SDK (Navigate Edition) documentation: https://developer.here.com/documentation/flutter-sdk-navigate/dev_guide/index.html
I was wondering if there was a way to render custom icons in Dart comment, just as Material and Cupertino icons are.
To give a little bit of context, the project I'm currently working on uses TablerIcons and I wasn't able to find a package up to date and I was about to make one. So I was wondering if there is a way to display icons in Dart comment, the same way Material and Cupertino Icons are.
For example, with the icon 10k this piece of code is used: <i class="material-icons md-36">10k</i> — material icon named "10k" which would give you something like this in vscode:
I tried different ways but couldn't make it work so I'm asking you guys if you have any ideas on how to do that, or if it's even possible.
Thanks.
Why flutter does not contain a preview of the app while we are programming it?
Is there any design plugin to be able to drag and drop widgets like in android studio for android apps?
It is difficult to build an interface from code without having a preview of the application.
Thanks!!
Disclaimer: This is not a first party tool.
I think what you're looking for is this:
https://flutterstudio.app/
It's a drag and drop editor for building Flutter layouts.
My personal recommendation is to use an emulator and learn how all the layout widgets work. Thanks to hot-reload it's super easy to experiment and create what you're looking for.
Well, you have emulator. What else do you want to preview your app?
Also on dart dev tools, you have a render tree and widget inspector. There is an option called show debug paint that I highly use to see the size and boundaries of widgets, and many other options I didn't discover yet.
You can use flutter studio if you want to create your ui by dragging and dropping widgets but I didn't use it.
And I just found that.
I really didn't understand what you mean by previewing.
For example, when you are starting and have a lot of examples, you might not remember what they look like.
I might suggest that you save a screenshot in your assets, so you can then remember what the app is about, without running the code.
I use GWT Material Design version 1.6.2. My data grid layout looks fine and I want to keep that layout on mobile devices.
So I don't want to see something like that in my application.
Any ideas how to do that? Thanks.
Solved.
Just do not need to set css style "responsive-table" on data greed.
For example change :
dataGrid.setStyleName("hoverable responsive-table");
to
dataGrid.setStyleName("hoverable");