From 769a8806179b34a44586f1804f1c1885fc3354f9 Mon Sep 17 00:00:00 2001 From: wutsi Date: Thu, 20 Apr 2023 17:24:56 -0400 Subject: [PATCH] update dependencies --- CHANGELOG.md | 7 +++++++ lib/src/badge.dart | 16 +++++++++------- pubspec.lock | 6 +++--- pubspec.yaml | 6 +++--- 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a345e2..16ba029 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ ## Changes +- upgrade to syncfusion_flutter_charts v21.1.41 +- upgrade to badges v3.1.1 + +## [0.1.200] 2023-02-03 + +## Changes + - upgrade to gradle v8 - upgrade to kotlin v1.8.20 - upgrade to syncfusion_flutter_charts v21.0.0 diff --git a/lib/src/badge.dart b/lib/src/badge.dart index 93d9c75..3e5ce65 100644 --- a/lib/src/badge.dart +++ b/lib/src/badge.dart @@ -18,14 +18,16 @@ class SDUIBadge extends SDUIWidget { @override Widget toWidget(BuildContext context) => Badge( key: id == null ? null : Key(id!), - elevation: elevation ?? 2, - badgeColor: toColor(backgroundColor) ?? Colors.red, - borderRadius: borderRadius == null - ? BorderRadius.zero - : BorderRadius.all(Radius.circular(borderRadius!)), - shape: _toBadgeShape(shape), + badgeStyle: BadgeStyle( + elevation: elevation ?? 2, + badgeColor: toColor(backgroundColor) ?? Colors.red, + borderRadius: borderRadius == null + ? BorderRadius.zero + : BorderRadius.all(Radius.circular(borderRadius!)), + shape: _toBadgeShape(shape), + padding: EdgeInsets.all(padding ?? 5.0), + ), position: _toBadgePosition(position), - padding: EdgeInsets.all(padding ?? 5.0), badgeContent: caption != null ? Text( caption!, diff --git a/pubspec.lock b/pubspec.lock index 7dc228e..0c6a6b0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -28,7 +28,7 @@ packages: name: badges url: "https://pub.dartlang.org" source: hosted - version: "2.0.3" + version: "3.1.1" boolean_selector: dependency: transitive description: @@ -741,14 +741,14 @@ packages: name: syncfusion_flutter_charts url: "https://pub.dartlang.org" source: hosted - version: "20.4.38" + version: "21.1.41" syncfusion_flutter_core: dependency: transitive description: name: syncfusion_flutter_core url: "https://pub.dartlang.org" source: hosted - version: "20.4.38" + version: "21.1.41" synchronized: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 1dfb490..9504162 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ description: SDUI make it easy to implement Server Driven UI pattern on flutter. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.1.200 +version: 0.1.201 environment: sdk: ">=2.12.0 <3.0.0" @@ -35,7 +35,7 @@ dependencies: # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.5 - badges: ^3.0.0 + badges: ^3.1.1 cached_network_image: ^3.2.3 camera: ^0.10.1 carousel_slider: ^4.2.1 @@ -61,7 +61,7 @@ dependencies: qr_flutter: ^4.0.0 share_plus: ^6.3.0 search_choices: ^2.2.1 - syncfusion_flutter_charts: ^21.0.0 + syncfusion_flutter_charts: ^21.1.41 uuid: ^3.0.7 uni_links: ^0.5.1 url_launcher: ^6.1.7