mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Docs: Integration Test Readme] Updated with proper commands (#88214)
* Updated with proper docs * Add the casting
This commit is contained in:
parent
aed4315a7d
commit
e7b1b2065d
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user