Skip to content

Commit

Permalink
update license
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaGao committed Dec 15, 2019
1 parent bc2d404 commit e1c7f6c
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [1.0.2] - Release Flags

* format code.
* add license

## [1.0.1] - Release Flags

* update to support latest dependencies
Expand Down
26 changes: 25 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
TODO: Add your license here.
BSD 2-Clause License

Copyright (c) 2019, Luna Gao
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.1"
version: "1.0.2"
flutter:
dependency: "direct main"
description: flutter
Expand Down
4 changes: 2 additions & 2 deletions lib/flag.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:flutter_svg/flutter_svg.dart';

/// A Flags.
class Flags {

/// get mini flag
static Widget getMiniFlag(String country, double height, double width) {
String assetName = 'packages/flag/res/svg1/' + country + '.svg';
Expand All @@ -20,7 +19,8 @@ class Flags {

/// get full flag
static Widget getFullFlag(String country, double height, double width) {
String assetName = 'packages/flag/res/svg2/' + country.toLowerCase() + '.svg';
String assetName =
'packages/flag/res/svg2/' + country.toLowerCase() + '.svg';
Widget svg = new SvgPicture.asset(
assetName,
semanticsLabel: country.toLowerCase(),
Expand Down
4 changes: 2 additions & 2 deletions 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.
version: 1.0.1
description: A flag Flutter package. Use for showing flags. Thanks for https://github.com/madebybowtie/FlagKit And https://github.com/hjnilsson/country-flags Projects.
version: 1.0.2
homepage: https://github.com/LunaGao/flag_flutter

environment:
Expand Down

0 comments on commit e1c7f6c

Please sign in to comment.