Unverified Commit e7b1b206 authored by Souvik Biswas's avatar Souvik Biswas Committed by GitHub

[Docs: Integration Test Readme] Updated with proper commands (#88214)

* Updated with proper docs

* Add the casting
parent aed4315a
...@@ -108,8 +108,8 @@ This feature is currently supported on Android, iOS, and Web. ...@@ -108,8 +108,8 @@ This feature is currently supported on Android, iOS, and Web.
```dart ```dart
void main() { void main() {
final IntegrationTestWidgetsFlutterBinding binding = final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized()
IntegrationTestWidgetsFlutterBinding.ensureInitialized(); as IntegrationTestWidgetsFlutterBinding;
testWidgets('screenshot', (WidgetTester tester) async { testWidgets('screenshot', (WidgetTester tester) async {
// Build the app. // Build the app.
...@@ -153,8 +153,8 @@ Future<void> main() async { ...@@ -153,8 +153,8 @@ Future<void> main() async {
```dart ```dart
void main() { void main() {
final IntegrationTestWidgetsFlutterBinding binding = final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized()
IntegrationTestWidgetsFlutterBinding.ensureInitialized(); as IntegrationTestWidgetsFlutterBinding;
testWidgets('screenshot', (WidgetTester tester) async { testWidgets('screenshot', (WidgetTester tester) async {
// Build the app. // Build the app.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment