refactor: Make more widgets null safe
This commit is contained in:
parent
d3e25f84cf
commit
1ca8b63c91
6 changed files with 54 additions and 38 deletions
|
|
@ -1,3 +1,5 @@
|
|||
//@dart=2.12
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
|
@ -5,12 +7,12 @@ import 'package:fluffychat/utils/platform_infos.dart';
|
|||
|
||||
class AdaptiveFlatButton extends StatelessWidget {
|
||||
final String label;
|
||||
final Color textColor;
|
||||
final Function onPressed;
|
||||
final Color? textColor;
|
||||
final void Function()? onPressed;
|
||||
|
||||
const AdaptiveFlatButton({
|
||||
Key key,
|
||||
@required this.label,
|
||||
Key? key,
|
||||
required this.label,
|
||||
this.textColor,
|
||||
this.onPressed,
|
||||
}) : super(key: key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue