[Docs: Integration Test Readme] Updated with proper commands (#88214)
* Updated with proper docs * Add the casting
This commit is contained in:
@@ -108,8 +108,8 @@ This feature is currently supported on Android, iOS, and Web.
|
||||
|
||||
```dart
|
||||
void main() {
|
||||
final IntegrationTestWidgetsFlutterBinding binding =
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized()
|
||||
as IntegrationTestWidgetsFlutterBinding;
|
||||
|
||||
testWidgets('screenshot', (WidgetTester tester) async {
|
||||
// Build the app.
|
||||
@@ -153,8 +153,8 @@ Future<void> main() async {
|
||||
|
||||
```dart
|
||||
void main() {
|
||||
final IntegrationTestWidgetsFlutterBinding binding =
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized()
|
||||
as IntegrationTestWidgetsFlutterBinding;
|
||||
|
||||
testWidgets('screenshot', (WidgetTester tester) async {
|
||||
// Build the app.
|
||||
|
||||
Reference in New Issue
Block a user