完成空安全转换

This commit is contained in:
toly
2021-08-29 11:29:45 +08:00
parent 8a5a57f5ac
commit 5806f35f54
319 changed files with 2638 additions and 2019 deletions

View File

@@ -17,11 +17,11 @@ class AlignSelectableText extends StatefulWidget {
}
class _AlignSelectableTextState extends State<AlignSelectableText> {
final text =
final String text =
"The [SelectableText] widget displays a string of text with a single style."
"The string might break across multiple lines or might all be displayed on"
"the same line depending on the layout constraints.";
var _textAlign = TextAlign.left;
TextAlign _textAlign = TextAlign.left;
@override
Widget build(BuildContext context) {
@@ -64,7 +64,7 @@ class _AlignSelectableTextState extends State<AlignSelectableText> {
.toList(),
onChanged: (e) {
setState(() {
_textAlign = e;
_textAlign = e??_textAlign;
});
}),
],