diff --git a/CHANGELOG.md b/CHANGELOG.md index 147f577..1a3256e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ -## [1.0.1] - [Jun 3, 2022] -* The maxWidth parameter will let you to limit the maximum size of the Status Alert smaller on big screens +## [1.0.1] - [Oct 17, 2022] +* The maxWidth parameter will let you to controll the Status Alert size on big screens ## [1.0.0] - [January 9, 2022] * Fix gradle.wrapper version. Stable. diff --git a/example/lib/main.dart b/example/lib/main.dart index be4fe39..fd250dd 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -13,9 +13,7 @@ class MyApp extends StatelessWidget { primarySwatch: Colors.deepPurple, brightness: Brightness.light, ), - darkTheme: ThemeData( - brightness: Brightness.dark, - ), + darkTheme: ThemeData(brightness: Brightness.dark), home: StatusAlertScreen(), ); } diff --git a/lib/src/widgets/status_alert_base_widget.dart b/lib/src/widgets/status_alert_base_widget.dart index df40b4a..bc375be 100644 --- a/lib/src/widgets/status_alert_base_widget.dart +++ b/lib/src/widgets/status_alert_base_widget.dart @@ -123,6 +123,7 @@ class __TDBaseWidgetState extends State ? MediaQuery.of(context).size.width : MediaQuery.of(context).size.height; + // Used to contoll the widget size on big screens if (widget.maxWidth != null && screenWidth > widget.maxWidth! / 0.72) { screenWidth = widget.maxWidth! / 0.72; }