Comments (3)
Yes but that would not work for every flag. It will cut off parts of the flag that are important for some countries. (custom rounded icons would be the better solution in my opinion)
from flag_flutter.
@vanlooverenkoen You can wrap it around with ClipRRect
Something like this
ClipRRect(
borderRadius:
BorderRadius.circular(AppDimensions.mainSpace),
child: Flag.fromCode(
FlagsCode.US,
height: 32,
width: 32,
fit: BoxFit.fill,
),
),
from flag_flutter.
fixed in v6.0.0
from flag_flutter.
Related Issues (20)
- Cannot push to repo some small changes HOT 3
- Can't find United Kingdom Flag HOT 3
- [Version: 6.0.0] Failed to find definition for #a HOT 2
- Exception when drawing Peru flag HOT 1
- Issue with JP flag rendering, along some others, in 6.0.0
- FormatException with Malta 4x3 svg HOT 1
- Sri lanka Flag not Show for LK HOT 2
- Alpha-3 code HOT 1
- Argentina's flag issue HOT 10
- Const
- CAUGHT AN EXCEPTION WHILE USING THE FLAG PACKAGE FOR FLUTTER APP HOT 4
- FormatException("Invalid double", source) HOT 6
- Update flag_flutter version HOT 17
- No serbian flag? HOT 1
- Several icons fail to load with error: Bad state: Expected to find Drawable with id HOT 1
- Brazil flag not working HOT 1
- Some flags are not working in Flutter HOT 3
- Nepali flag has weird image
- Error while trying to load an asset: Flutter Web engine failed to fetch "assets/packages/flag/res/4x3/de.svg". HTTP request succeeded, but the server responded with HTTP status 404.
- Error: Couldn't resolve the package 'flag' in 'package:flag/flag.dart'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flag_flutter.