From 163aa857ef21a2d727141c411325a0d80bd55f88 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 14 Aug 2019 17:12:44 +1200 Subject: [PATCH 01/10] Fixed ticker leak: DropdownMenuState was disposed with an active Ticker _fadeController is not dispose() at state's dispose() method, causing ticker leaking --- lib/_src/dropdown_menu.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/_src/dropdown_menu.dart b/lib/_src/dropdown_menu.dart index 98f7101..1db9559 100644 --- a/lib/_src/dropdown_menu.dart +++ b/lib/_src/dropdown_menu.dart @@ -143,6 +143,7 @@ class _DropdownMenuState extends DropdownState for (int i = 0, c = _dropdownAnimations.length; i < c; ++i) { _dropdownAnimations[i].dispose(); } + _fadeController.dispose(); super.dispose(); } From 7ec639d07ca9d60cb279049a45f36764eb822348 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 17 Aug 2019 12:02:35 +1200 Subject: [PATCH 02/10] Added missing type parameters This fixes error like type '(XXX) => List' is not a subtype of type '(dynamic) => List' --- lib/_src/dropdown_list_menu.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_src/dropdown_list_menu.dart b/lib/_src/dropdown_list_menu.dart index d207938..ba94c8a 100644 --- a/lib/_src/dropdown_list_menu.dart +++ b/lib/_src/dropdown_list_menu.dart @@ -145,11 +145,11 @@ class DropdownTreeMenu extends DropdownWidget { @override DropdownState createState() { - return new _TreeMenuList(); + return new _TreeMenuList(); } } -class _TreeMenuList extends DropdownState { +class _TreeMenuList extends DropdownState> { int _subSelectedIndex; int _selectedIndex; From a36a6752b0ca066809f502beaf98643b93942126 Mon Sep 17 00:00:00 2001 From: Wei Date: Tue, 10 Mar 2020 09:24:46 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E8=B6=8A=E7=95=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/pubspec.lock | 84 ++++++++++++++++++++++++++------ flutter_dropdown_menu.iml | 8 +++ lib/_src/dropdown_header.dart | 61 +++++++++++++++-------- lib/_src/dropdown_templates.dart | 39 +++++++-------- pubspec.lock | 82 ++++++++++++++++++++++++++----- pubspec.yaml | 2 +- 6 files changed, 209 insertions(+), 67 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index c20338f..ed81393 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -1,13 +1,27 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: + archive: + dependency: transitive + description: + name: archive + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.0.11" + args: + dependency: transitive + description: + name: args + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.5.2" async: dependency: transitive description: name: async url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.8" + version: "2.4.0" async_loader: dependency: "direct main" description: @@ -21,7 +35,7 @@ packages: name: boolean_selector url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.4" + version: "1.0.5" charcode: dependency: transitive description: @@ -36,6 +50,20 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.14.11" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.1.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.1.3" cupertino_icons: dependency: "direct main" description: @@ -49,7 +77,7 @@ packages: path: ".." relative: true source: path - version: "1.1.0" + version: "1.1.1" flutter: dependency: "direct main" description: flutter @@ -60,34 +88,55 @@ packages: description: flutter source: sdk version: "0.0.0" + image: + dependency: transitive + description: + name: image + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.1.4" matcher: dependency: transitive description: name: matcher url: "https://pub.flutter-io.cn" source: hosted - version: "0.12.3+1" + version: "0.12.6" meta: dependency: transitive description: name: meta url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.6" + version: "1.1.8" path: dependency: transitive description: name: path url: "https://pub.flutter-io.cn" source: hosted - version: "1.6.2" + version: "1.6.4" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.8.0+1" + petitparser: + dependency: transitive + description: + name: petitparser + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.4.0" quiver: dependency: transitive description: name: quiver url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.1" + version: "2.0.5" sky_engine: dependency: transitive description: flutter @@ -99,7 +148,7 @@ packages: name: source_span url: "https://pub.flutter-io.cn" source: hosted - version: "1.4.1" + version: "1.5.5" stack_trace: dependency: transitive description: @@ -113,28 +162,28 @@ packages: name: stream_channel url: "https://pub.flutter-io.cn" source: hosted - version: "1.6.8" + version: "2.0.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.4" + version: "1.0.5" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.1" + version: "1.1.0" test_api: dependency: transitive description: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.2.1" + version: "0.2.11" typed_data: dependency: transitive description: @@ -149,6 +198,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.0.8" + xml: + dependency: transitive + description: + name: xml + url: "https://pub.flutter-io.cn" + source: hosted + version: "3.5.0" sdks: - dart: ">=2.0.0 <3.0.0" + dart: ">=2.4.0 <3.0.0" flutter: ">=0.1.4 <3.0.0" diff --git a/flutter_dropdown_menu.iml b/flutter_dropdown_menu.iml index b06c613..9b91862 100644 --- a/flutter_dropdown_menu.iml +++ b/flutter_dropdown_menu.iml @@ -1,10 +1,18 @@ + + + + + + + diff --git a/lib/_src/dropdown_header.dart b/lib/_src/dropdown_header.dart index df32407..d1ca315 100644 --- a/lib/_src/dropdown_header.dart +++ b/lib/_src/dropdown_header.dart @@ -18,6 +18,11 @@ class DropdownHeader extends DropdownWidget { final List titles; final int activeIndex; final DropdownMenuHeadTapCallback onTap; + final int maxLines; + + final TextOverflow overflow; + + final bool showLeftLine; /// height of menu final double height; @@ -32,6 +37,9 @@ class DropdownHeader extends DropdownWidget { this.onTap, Key key, this.height: 46.0, + this.maxLines: 1, + this.overflow: TextOverflow.ellipsis, + this.showLeftLine: true, GetItemLabel getItemLabel}) : getItemLabel = getItemLabel ?? defaultGetItemLabel, assert(titles != null && titles.length > 0), @@ -50,28 +58,41 @@ class _DropdownHeaderState extends DropdownState { final Color unselectedColor = Theme.of(context).unselectedWidgetColor; final GetItemLabel getItemLabel = widget.getItemLabel; - return new GestureDetector( + return GestureDetector( behavior: HitTestBehavior.opaque, - child: new Padding( - padding: new EdgeInsets.fromLTRB(0.0, 10.0, 0.0, 10.0), - child: new DecoratedBox( - decoration: new BoxDecoration( - border: new Border(left: Divider.createBorderSide(context))), - child: new Center( - child: new Row( - mainAxisSize: MainAxisSize.min, - children: [ - new Text( - getItemLabel(title), - style: new TextStyle( - color: selected ? primaryColor : unselectedColor, - ), - ), - new Icon( - selected ? Icons.arrow_drop_up : Icons.arrow_drop_down, + child: Padding( + padding: EdgeInsets.fromLTRB(0.0, 10.0, 0.0, 10.0), + child: DecoratedBox( + decoration: BoxDecoration( + border: Border( + left: widget.showLeftLine + ? Divider.createBorderSide(context) + : BorderSide.none)), + child: Center( + child: + + Row( + mainAxisSize: MainAxisSize.min, + children: [ + Flexible( + child: Text( + getItemLabel(title), + style: new TextStyle( color: selected ? primaryColor : unselectedColor, - ) - ])))), + ), + maxLines: widget.maxLines, + overflow: widget.overflow, + ), + ), + Icon( + selected ? Icons.arrow_drop_up : Icons.arrow_drop_down, + color: selected ? primaryColor : unselectedColor, + ), + ], + ), + ), + ), + ), onTap: () { if (widget.onTap != null) { widget.onTap(index); diff --git a/lib/_src/dropdown_templates.dart b/lib/_src/dropdown_templates.dart index f0af4fc..d70fa55 100644 --- a/lib/_src/dropdown_templates.dart +++ b/lib/_src/dropdown_templates.dart @@ -5,29 +5,30 @@ import 'package:flutter/material.dart'; import 'package:dropdown_menu/_src/dropdown_header.dart'; Widget buildCheckItem(BuildContext context, dynamic data, bool selected) { - return new Padding( - padding: new EdgeInsets.all(10.0), - child: new Row( + return Padding( + padding: EdgeInsets.all(10.0), + child: Row( children: [ - new Text( - defaultGetItemLabel(data), - style: selected - ? new TextStyle( - fontSize: 14.0, - color: Theme.of(context).primaryColor, - fontWeight: FontWeight.w400) - : new TextStyle(fontSize: 14.0), + Expanded( + child: Text( + defaultGetItemLabel(data), + style: selected + ? new TextStyle( + fontSize: 14.0, + color: Theme.of(context).primaryColor, + fontWeight: FontWeight.w400) + : new TextStyle(fontSize: 14.0), ), - new Expanded( - child: new Align( + ), + Align( alignment: Alignment.centerRight, child: selected - ? new Icon( - Icons.check, - color: Theme.of(context).primaryColor, - ) - : null, - )), + ? Icon( + Icons.check, + color: Theme.of(context).primaryColor, + ) + : null, + ), ], )); } diff --git a/pubspec.lock b/pubspec.lock index 33150fb..591a91b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,20 +1,34 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: + archive: + dependency: transitive + description: + name: archive + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.0.11" + args: + dependency: transitive + description: + name: args + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.5.2" async: dependency: transitive description: name: async url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.8" + version: "2.4.0" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.4" + version: "1.0.5" charcode: dependency: transitive description: @@ -29,6 +43,20 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.14.11" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.1.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.1.3" flutter: dependency: "direct main" description: flutter @@ -39,34 +67,55 @@ packages: description: flutter source: sdk version: "0.0.0" + image: + dependency: transitive + description: + name: image + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.1.4" matcher: dependency: transitive description: name: matcher url: "https://pub.flutter-io.cn" source: hosted - version: "0.12.3+1" + version: "0.12.6" meta: dependency: transitive description: name: meta url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.6" + version: "1.1.8" path: dependency: transitive description: name: path url: "https://pub.flutter-io.cn" source: hosted - version: "1.6.2" + version: "1.6.4" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.8.0+1" + petitparser: + dependency: transitive + description: + name: petitparser + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.4.0" quiver: dependency: transitive description: name: quiver url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.1" + version: "2.0.5" sky_engine: dependency: transitive description: flutter @@ -78,7 +127,7 @@ packages: name: source_span url: "https://pub.flutter-io.cn" source: hosted - version: "1.4.1" + version: "1.5.5" stack_trace: dependency: transitive description: @@ -92,28 +141,28 @@ packages: name: stream_channel url: "https://pub.flutter-io.cn" source: hosted - version: "1.6.8" + version: "2.0.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.4" + version: "1.0.5" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.1" + version: "1.1.0" test_api: dependency: transitive description: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.2.1" + version: "0.2.11" typed_data: dependency: transitive description: @@ -128,6 +177,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.0.8" + xml: + dependency: transitive + description: + name: xml + url: "https://pub.flutter-io.cn" + source: hosted + version: "3.5.0" sdks: - dart: ">=2.0.0 <3.0.0" + dart: ">=2.4.0 <3.0.0" flutter: ">=0.1.4 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index a6e267b..4b64b03 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,7 +8,7 @@ homepage: https://github.com/jzoom/flutter_dropdown_menu environment: - sdk: ">=2.0.0-dev.48.0 <3.0.0" + sdk: ">=2.2.2 <3.0.0" flutter: ">=0.1.4 <3.0.0" From 24d34d56c63e8caa408409d07b572aafdbcd9d52 Mon Sep 17 00:00:00 2001 From: weizhengheng Date: Tue, 25 May 2021 13:39:10 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=82=E9=85=8D=20fl?= =?UTF-8?q?utter=202.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/pubspec.lock | 110 +++++++++++----------------------- example/pubspec.yaml | 3 + lib/_src/drapdown_common.dart | 3 +- pubspec.lock | 106 ++++++++++---------------------- pubspec.yaml | 5 +- 5 files changed, 72 insertions(+), 155 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index ed81393..3721546 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -1,27 +1,13 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: - archive: - dependency: transitive - description: - name: archive - url: "https://pub.flutter-io.cn" - source: hosted - version: "2.0.11" - args: - dependency: transitive - description: - name: args - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.5.2" async: dependency: transitive description: name: async url: "https://pub.flutter-io.cn" source: hosted - version: "2.4.0" + version: "2.5.0" async_loader: dependency: "direct main" description: @@ -35,35 +21,35 @@ packages: name: boolean_selector url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.5" - charcode: + version: "2.1.0" + characters: dependency: transitive description: - name: charcode + name: characters url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.2" - collection: + version: "1.1.0" + charcode: dependency: transitive description: - name: collection + name: charcode url: "https://pub.flutter-io.cn" source: hosted - version: "1.14.11" - convert: + version: "1.2.0" + clock: dependency: transitive description: - name: convert + name: clock url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.1" - crypto: + version: "1.1.0" + collection: dependency: transitive description: - name: crypto + name: collection url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.3" + version: "1.15.0" cupertino_icons: dependency: "direct main" description: @@ -78,6 +64,13 @@ packages: relative: true source: path version: "1.1.1" + fake_async: + dependency: transitive + description: + name: fake_async + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.2.0" flutter: dependency: "direct main" description: flutter @@ -88,55 +81,27 @@ packages: description: flutter source: sdk version: "0.0.0" - image: - dependency: transitive - description: - name: image - url: "https://pub.flutter-io.cn" - source: hosted - version: "2.1.4" matcher: dependency: transitive description: name: matcher url: "https://pub.flutter-io.cn" source: hosted - version: "0.12.6" + version: "0.12.10" meta: dependency: transitive description: name: meta url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.8" + version: "1.3.0" path: dependency: transitive description: name: path url: "https://pub.flutter-io.cn" source: hosted - version: "1.6.4" - pedantic: - dependency: transitive - description: - name: pedantic - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.8.0+1" - petitparser: - dependency: transitive - description: - name: petitparser - url: "https://pub.flutter-io.cn" - source: hosted - version: "2.4.0" - quiver: - dependency: transitive - description: - name: quiver - url: "https://pub.flutter-io.cn" - source: hosted - version: "2.0.5" + version: "1.8.0" sky_engine: dependency: transitive description: flutter @@ -148,63 +113,56 @@ packages: name: source_span url: "https://pub.flutter-io.cn" source: hosted - version: "1.5.5" + version: "1.8.0" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.flutter-io.cn" source: hosted - version: "1.9.3" + version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.0" + version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.5" + version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.0" + version: "1.2.0" test_api: dependency: transitive description: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.2.11" + version: "0.2.19" typed_data: dependency: transitive description: name: typed_data url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.6" + version: "1.3.0" vector_math: dependency: transitive description: name: vector_math url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.8" - xml: - dependency: transitive - description: - name: xml - url: "https://pub.flutter-io.cn" - source: hosted - version: "3.5.0" + version: "2.1.0" sdks: - dart: ">=2.4.0 <3.0.0" - flutter: ">=0.1.4 <3.0.0" + dart: ">=2.12.0-0.0 <3.0.0" + flutter: ">=0.1.4" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index d777eba..99f05ab 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,6 +1,9 @@ name: example description: A new Flutter project. +environment: + sdk: '>=2.10.0 <3.0.0' + dependencies: flutter: sdk: flutter diff --git a/lib/_src/drapdown_common.dart b/lib/_src/drapdown_common.dart index 07b6b8b..79344b9 100644 --- a/lib/_src/drapdown_common.dart +++ b/lib/_src/drapdown_common.dart @@ -64,7 +64,8 @@ class DefaultDropdownMenuController extends StatefulWidget { static DropdownMenuController of(BuildContext context) { final _DropdownMenuControllerScope scope = - context.inheritFromWidgetOfExactType(_DropdownMenuControllerScope); + context.dependOnInheritedWidgetOfExactType( + aspect: _DropdownMenuControllerScope); return scope?.controller; } diff --git a/pubspec.lock b/pubspec.lock index 591a91b..c13e41e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,62 +1,55 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: - archive: - dependency: transitive - description: - name: archive - url: "https://pub.flutter-io.cn" - source: hosted - version: "2.0.11" - args: - dependency: transitive - description: - name: args - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.5.2" async: dependency: transitive description: name: async url: "https://pub.flutter-io.cn" source: hosted - version: "2.4.0" + version: "2.5.0" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.5" + version: "2.1.0" + characters: + dependency: transitive + description: + name: characters + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.1.0" charcode: dependency: transitive description: name: charcode url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.2" - collection: + version: "1.2.0" + clock: dependency: transitive description: - name: collection + name: clock url: "https://pub.flutter-io.cn" source: hosted - version: "1.14.11" - convert: + version: "1.1.0" + collection: dependency: transitive description: - name: convert + name: collection url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.1" - crypto: + version: "1.15.0" + fake_async: dependency: transitive description: - name: crypto + name: fake_async url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.3" + version: "1.2.0" flutter: dependency: "direct main" description: flutter @@ -67,55 +60,27 @@ packages: description: flutter source: sdk version: "0.0.0" - image: - dependency: transitive - description: - name: image - url: "https://pub.flutter-io.cn" - source: hosted - version: "2.1.4" matcher: dependency: transitive description: name: matcher url: "https://pub.flutter-io.cn" source: hosted - version: "0.12.6" + version: "0.12.10" meta: dependency: transitive description: name: meta url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.8" + version: "1.3.0" path: dependency: transitive description: name: path url: "https://pub.flutter-io.cn" source: hosted - version: "1.6.4" - pedantic: - dependency: transitive - description: - name: pedantic - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.8.0+1" - petitparser: - dependency: transitive - description: - name: petitparser - url: "https://pub.flutter-io.cn" - source: hosted - version: "2.4.0" - quiver: - dependency: transitive - description: - name: quiver - url: "https://pub.flutter-io.cn" - source: hosted - version: "2.0.5" + version: "1.8.0" sky_engine: dependency: transitive description: flutter @@ -127,63 +92,56 @@ packages: name: source_span url: "https://pub.flutter-io.cn" source: hosted - version: "1.5.5" + version: "1.8.0" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.flutter-io.cn" source: hosted - version: "1.9.3" + version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.0" + version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.5" + version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.0" + version: "1.2.0" test_api: dependency: transitive description: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.2.11" + version: "0.2.19" typed_data: dependency: transitive description: name: typed_data url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.6" + version: "1.3.0" vector_math: dependency: transitive description: name: vector_math url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.8" - xml: - dependency: transitive - description: - name: xml - url: "https://pub.flutter-io.cn" - source: hosted - version: "3.5.0" + version: "2.1.0" sdks: - dart: ">=2.4.0 <3.0.0" - flutter: ">=0.1.4 <3.0.0" + dart: ">=2.12.0-0.0 <3.0.0" + flutter: ">=0.1.4" diff --git a/pubspec.yaml b/pubspec.yaml index 4b64b03..61a2eb5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,11 +4,8 @@ version: 1.1.1 author: JZoom homepage: https://github.com/jzoom/flutter_dropdown_menu - - - environment: - sdk: ">=2.2.2 <3.0.0" + sdk: '>=2.10.0 <3.0.0' flutter: ">=0.1.4 <3.0.0" From 94eb61d7c145014ee39cc520561eb63cedb1372e Mon Sep 17 00:00:00 2001 From: weizhengheng Date: Tue, 25 May 2021 13:41:14 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/libraries/Dart_Packages.xml | 112 ++--- .idea/libraries/Dart_SDK.xml | 39 +- .idea/misc.xml | 3 + .idea/workspace.xml | 662 ++---------------------------- 4 files changed, 128 insertions(+), 688 deletions(-) diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml index 65a4c4d..d2d27cd 100644 --- a/.idea/libraries/Dart_Packages.xml +++ b/.idea/libraries/Dart_Packages.xml @@ -5,174 +5,190 @@ - - - + + + + + + - + + + + + + - - - + - - + - - + - - + - - + - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml index 321b902..a54d004 100644 --- a/.idea/libraries/Dart_SDK.xml +++ b/.idea/libraries/Dart_SDK.xml @@ -1,25 +1,26 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/misc.xml b/.idea/misc.xml index 3268472..0fe5195 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,8 @@ + + +