Skip to content

Commit

Permalink
💚 Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Oct 6, 2023
1 parent ef06c5d commit b5225e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
5 changes: 4 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ class _MyHomePageState extends State<MyHomePage> {
Center(
child: Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
style: const TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.w600,
),
),
),
Padding(
Expand Down
12 changes: 1 addition & 11 deletions lib/src/widget/oktoast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,7 @@ class _OKToastState extends State<OKToast> {
child: overlay,
);

final Typography typography = Typography.material2018();
final TextTheme defaultTextTheme = typography.white;

final TextStyle textStyle = widget.textStyle ??
defaultTextTheme.bodyMedium?.copyWith(
fontSize: 15.0,
fontWeight: FontWeight.normal,
color: Colors.white,
) ??
_defaultTextStyle;

final TextStyle textStyle = widget.textStyle ?? _defaultTextStyle;
final TextAlign textAlign = widget.textAlign ?? TextAlign.center;
final EdgeInsets textPadding = widget.textPadding ??
const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0);
Expand Down
3 changes: 2 additions & 1 deletion lib/src/widget/overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ class OverlayState extends State<Overlay> with TickerProviderStateMixin {
///
/// The first [skipCount] children are considered "offstage".
class Theatre extends MultiChildRenderObjectWidget {
const Theatre({
// ignore: prefer_const_constructors_in_immutables
Theatre({
super.key,
this.skipCount = 0,
this.clipBehavior = Clip.hardEdge,
Expand Down

0 comments on commit b5225e2

Please sign in to comment.