Skip to content

Commit

Permalink
refactor: some changelog and docs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yadaniyil committed Oct 17, 2022
1 parent b06db4d commit dcf8e3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 1 addition & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
}
Expand Down
1 change: 1 addition & 0 deletions lib/src/widgets/status_alert_base_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class __TDBaseWidgetState extends State<StatusAlertBaseWidget>
? 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;
}
Expand Down

0 comments on commit dcf8e3e

Please sign in to comment.