This commit is contained in:
agra
2025-02-02 15:05:11 +02:00
parent 8626e8c2c6
commit 2777b5f746
16 changed files with 216 additions and 330 deletions

View File

@@ -7,7 +7,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:ux_example/main.dart';
void main() {
@@ -18,8 +17,8 @@ void main() {
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
(Widget widget) => widget is Text &&
widget.data.startsWith('Running on:'),
(Widget widget) =>
widget is Text && (widget.data?.startsWith('Running on:') ?? false),
),
findsOneWidget,
);