From e9a87f382cb01fd4cb61aab91f2a6b174aa3183a Mon Sep 17 00:00:00 2001 From: jihanurrahman33 Date: Tue, 2 Sep 2025 03:22:46 +0600 Subject: [PATCH] fix(example): migrate deprecated Material buttons to modern widgets --- example/lib/InnerSwiper.dart | 4 ++-- example/lib/src/ExampleCustom.dart | 6 +++--- example/lib/src/forms/form_widget.dart | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example/lib/InnerSwiper.dart b/example/lib/InnerSwiper.dart index ccf32a6..5fe0fea 100644 --- a/example/lib/InnerSwiper.dart +++ b/example/lib/InnerSwiper.dart @@ -64,7 +64,7 @@ class _InnerSwiperState extends State { ), height: 300.0, ), - new RaisedButton( + new ElevatedButton( onPressed: () { setState(() { autoplayes[index] = true; @@ -72,7 +72,7 @@ class _InnerSwiperState extends State { }, child: new Text("Start autoplay"), ), - new RaisedButton( + new ElevatedButton( onPressed: () { setState(() { autoplayes[index] = false; diff --git a/example/lib/src/ExampleCustom.dart b/example/lib/src/ExampleCustom.dart index 3b65a43..b1575b9 100644 --- a/example/lib/src/ExampleCustom.dart +++ b/example/lib/src/ExampleCustom.dart @@ -154,13 +154,13 @@ class _ExampleCustomState extends State { new Text("Index:$_currentIndex"), new Row( children: [ - new RaisedButton( + new ElevatedButton( onPressed: () { _controller.previous(animation: true); }, child: new Text("Prev"), ), - new RaisedButton( + new ElevatedButton( onPressed: () { _controller.next(animation: true); }, @@ -170,7 +170,7 @@ class _ExampleCustomState extends State { child: new TextField( controller: numberController, )), - new RaisedButton( + new ElevatedButton( onPressed: () { var text = numberController.text; setState(() { diff --git a/example/lib/src/forms/form_widget.dart b/example/lib/src/forms/form_widget.dart index 2cba7de..859718d 100644 --- a/example/lib/src/forms/form_widget.dart +++ b/example/lib/src/forms/form_widget.dart @@ -85,7 +85,7 @@ class _FormSelectState extends State { ), ), new Center( - child: new RaisedButton( + child: new ElevatedButton( onPressed: () { if (_selectedIndex >= 0) { widget