From e1c7f6c27317c887dc40ec32d1ed853435826f6e Mon Sep 17 00:00:00 2001 From: LunaGao Date: Mon, 16 Dec 2019 00:28:11 +0800 Subject: [PATCH] update license --- CHANGELOG.md | 5 +++++ LICENSE | 26 +++++++++++++++++++++++++- example/pubspec.lock | 2 +- lib/flag.dart | 4 ++-- pubspec.yaml | 4 ++-- 5 files changed, 35 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41a89c7..ccdc638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.0.2] - Release Flags + +* format code. +* add license + ## [1.0.1] - Release Flags * update to support latest dependencies diff --git a/LICENSE b/LICENSE index ba75c69..353b6a7 100644 --- a/LICENSE +++ b/LICENSE @@ -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. \ No newline at end of file diff --git a/example/pubspec.lock b/example/pubspec.lock index 7bf4044..fb71573 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -63,7 +63,7 @@ packages: path: ".." relative: true source: path - version: "1.0.1" + version: "1.0.2" flutter: dependency: "direct main" description: flutter diff --git a/lib/flag.dart b/lib/flag.dart index 1915dad..2180162 100644 --- a/lib/flag.dart +++ b/lib/flag.dart @@ -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'; @@ -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(), diff --git a/pubspec.yaml b/pubspec.yaml index 0e963be..70df8d0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: