refactor: Make more widgets null safe

This commit is contained in:
Krille Fear 2021-11-19 20:38:16 +01:00
commit 1ca8b63c91
6 changed files with 54 additions and 38 deletions

View file

@ -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);