import 'package:flutter_test/flutter_test.dart'; /// Scrolls the Settings page to the heading [title] and lets a lazy section /// that the scroll reaches load its content. Future openSettingsSection(WidgetTester tester, String title) async { final heading = find.text(title).first; await tester.ensureVisible(heading); await tester.pump(); await tester.pump(); await tester.pump(const Duration(milliseconds: 300)); }