flutter_trianglify icon indicating copy to clipboard operation
flutter_trianglify copied to clipboard

GridWidth should accept Device width

Open ksankumar opened this issue 5 years ago • 4 comments

Not fit the device width for gridWidth.

 gridWidth : MediaQuery.of(context).size.width

ksankumar avatar Dec 02 '19 16:12 ksankumar

See the solution in example folder.

JonathanMonga avatar Dec 02 '19 19:12 JonathanMonga

In example we achieve that with help of adding some width

MediaQuery.of(context).size.width + (200 * scaleFactor),

How can we add full with without adding those 200*scalefactor

This code affects in Samsung S9, Pixel 2 and some more devices.

ksankumar avatar Dec 03 '19 04:12 ksankumar

This (200 * scalefactor) is very important, you can for example put the 200 to 400 or decrease if there is way and remove the scalefactor

JonathanMonga avatar Dec 03 '19 18:12 JonathanMonga

It ok??

JonathanMonga avatar Dec 04 '19 16:12 JonathanMonga