fix(chat): use stock Navigator Back at every screen width
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import '../native_back.dart';
|
||||
import 'package:pipelines_app/shell/destination.dart';
|
||||
import 'package:pipelines_app/shell/detail_page.dart';
|
||||
import 'package:pipelines_app/shell/shell_bar.dart';
|
||||
@@ -64,7 +65,7 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('detail 8'), findsOneWidget);
|
||||
|
||||
await tester.tap(find.byKey(const ValueKey('shell.back')));
|
||||
await tester.tap(findNativeBack());
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('the list'), findsOneWidget);
|
||||
expect(selection.value, isNull);
|
||||
|
||||
Reference in New Issue
Block a user