diff --git a/packages/flutter_adaptive_scaffold/CHANGELOG.md b/packages/flutter_adaptive_scaffold/CHANGELOG.md index 8080458a466b..43cdac63da7b 100644 --- a/packages/flutter_adaptive_scaffold/CHANGELOG.md +++ b/packages/flutter_adaptive_scaffold/CHANGELOG.md @@ -1,6 +1,7 @@ -## NEXT +## 0.1.11 -* Updates minimum supported SDK version to Flutter 3.16/Dart 3.2. +* Updates minimum supported SDK version to Flutter 3.19/Dart 3.3. +* Migrates deprecated MaterialState and MaterialStateProperty to WidgetState and WidgetStateProperty. ## 0.1.10+2 diff --git a/packages/flutter_adaptive_scaffold/example/lib/main.dart b/packages/flutter_adaptive_scaffold/example/lib/main.dart index 735b25a668a1..13a6418973da 100644 --- a/packages/flutter_adaptive_scaffold/example/lib/main.dart +++ b/packages/flutter_adaptive_scaffold/example/lib/main.dart @@ -863,14 +863,14 @@ class _EmailTile extends StatelessWidget { child: OutlinedButton( onPressed: () {}, style: ButtonStyle( - shape: MaterialStateProperty.all( + shape: WidgetStateProperty.all( RoundedRectangleBorder( borderRadius: BorderRadius.circular(30.0)), ), - backgroundColor: MaterialStateProperty.all( + backgroundColor: WidgetStateProperty.all( const Color.fromARGB(255, 245, 241, 248), ), - side: MaterialStateProperty.all( + side: WidgetStateProperty.all( const BorderSide( width: 0.0, color: Colors.transparent), ), @@ -885,14 +885,14 @@ class _EmailTile extends StatelessWidget { child: OutlinedButton( onPressed: () {}, style: ButtonStyle( - shape: MaterialStateProperty.all( + shape: WidgetStateProperty.all( RoundedRectangleBorder( borderRadius: BorderRadius.circular(30.0)), ), - backgroundColor: MaterialStateProperty.all( + backgroundColor: WidgetStateProperty.all( const Color.fromARGB(255, 245, 241, 248), ), - side: MaterialStateProperty.all( + side: WidgetStateProperty.all( const BorderSide( width: 0.0, color: Colors.transparent), ), diff --git a/packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart b/packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart index 663817a7ec16..c2a2e68327bf 100644 --- a/packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart +++ b/packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart @@ -338,8 +338,8 @@ class AdaptiveScaffold extends StatefulWidget { NavigationBarTheme.of(context); return NavigationBarTheme( data: currentNavBarTheme.copyWith( - iconTheme: MaterialStateProperty.resolveWith( - (Set states) { + iconTheme: WidgetStateProperty.resolveWith( + (Set states) { return currentNavBarTheme.iconTheme ?.resolve(states) ?.copyWith(size: iconSize) ?? diff --git a/packages/flutter_adaptive_scaffold/pubspec.yaml b/packages/flutter_adaptive_scaffold/pubspec.yaml index 6ed9f2f11a8c..ed61991cf35f 100644 --- a/packages/flutter_adaptive_scaffold/pubspec.yaml +++ b/packages/flutter_adaptive_scaffold/pubspec.yaml @@ -1,12 +1,12 @@ name: flutter_adaptive_scaffold description: Widgets to easily build adaptive layouts, including navigation elements. -version: 0.1.10+2 +version: 0.1.11 issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_adaptive_scaffold%22 repository: https://github.com/flutter/packages/tree/main/packages/flutter_adaptive_scaffold environment: - sdk: ^3.2.0 - flutter: ">=3.16.0" + sdk: ^3.3.0 + flutter: ">=3.19.0" dependencies: flutter: