Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: LunaGao/flag_flutter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.0.0
Choose a base ref
...
head repository: LunaGao/flag_flutter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: stable
Choose a head ref
  • 1 commit
  • 7 files changed
  • 1 contributor

Commits on Jun 13, 2023

  1. update some docs

    LunaGao committed Jun 13, 2023

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    a2604b2 View commit details
Showing with 32 additions and 7 deletions.
  1. BIN .github/image.jpeg
  2. BIN {github → .github}/image.png
  3. BIN {github → .github}/image_web.jpg
  4. +3 −0 CHANGELOG.md
  5. +27 −5 README.md
  6. +1 −1 example/lib/main.dart
  7. +1 −1 pubspec.yaml
Binary file added .github/image.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [7.0.1]
* update README.md file

## [7.0.0]
* Upgrade svg package and remove caching

32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -7,8 +7,7 @@
A flag Flutter package for `Android` / `iOS` / `Web`. Based by https://github.com/dnfield/flutter_svg .

## Screenshot
![Screenshot](./github/image.png)
![Screenshot](./github/image_web.jpg)
![Screenshot](./.github/image.jpeg)

## Svg sources
* All flags came from https://github.com/lipis/flag-icons/releases/tag/v4.1.4
@@ -35,9 +34,32 @@ Undisputed territories which are non-UN state

## How to use

`Flag.fromCode(FlagsCode.COUNTRY_CODE, height: HEIGHT, width: WIDTH),`
`Flag.fromString(COUNTRY_CODE, height: HEIGHT, width: WIDTH),`
`Flags.fromCode([FlagsCode.GB, FlagsCode.US], height: 100, width: 100 * 4 / 3),`
```
Flag.fromCode(
FlagsCode.COUNTRY_CODE,
height: HEIGHT,
width: WIDTH,
)
```

```
Flag.fromString(
COUNTRY_CODE,
height: HEIGHT,
width: WIDTH,
)
```

```
Flags.fromCode(
[
FlagsCode.GB,
FlagsCode.US
],
height: 100,
width: 100 * 4 / 3,
)
```

Such as
* `Flag.fromCode(FlagsCode.AD, height: 100, width: null)`
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ class _MyHomePageState extends State<MyHomePage> {
Flags.fromCode(
[
FlagsCode.GB,
FlagsCode.US,
FlagsCode.CN,
],
height: 100,
width: 100 * 4 / 3,
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flag
description: A flag Flutter package. Use for showing flags. All flags came from https://github.com/lipis/flag-icons/releases/tag/v4.1.4 .
version: 7.0.0
version: 7.0.1
homepage: https://github.com/LunaGao/flag_flutter

environment: