10 lines
350 B
Dart
10 lines
350 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
/// Find the platform's actual Back control, not an app-specific button key.
|
|
Finder findNativeBack() => find.byWidgetPredicate(
|
|
(widget) =>
|
|
widget is BackButton || widget is CupertinoNavigationBarBackButton,
|
|
);
|