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.byType(BackButton);