Bruno Leroux
e070417afe
Add 'Share' button to the selection toolbar on Android ( #139479 )
...
## Description
This PR adds the 'Share' button to the text selection toolbar on Android.
## Related Issue
Fixes https://github.com/flutter/flutter/issues/138728
## Tests
Refactor a lot of existing tests in order to:
- make them more readable (avoid duplication by introducing helper functions, specify explictly check which buttons are expected).
- make them more accurate (check that expected buttons are visible instead of just checking the number of buttons).
For instance, previous tests contained sections such as:
```dart
// Collapsed toolbar shows 3 buttons.
expect(
find.byType(CupertinoButton),
isContextMenuProvidedByPlatform ? findsNothing : isTargetPlatformIOS ? findsNWidgets(6) : findsNWidgets(3)
);
```
Where the comment is obsolete, the two cases (6 widgets and 3 widgets) are not explicit (which buttons are expected?), and not accurate (will pass if the number of buttons is right but the buttons are the wrong ones).
2023-12-08 15:34:01 +00:00
..
2023-09-11 09:42:27 -07:00
2023-10-12 14:17:56 +00:00
2023-10-24 22:35:05 +00:00
2023-12-08 15:34:01 +00:00
2023-08-31 10:19:13 -07:00
2023-11-20 15:24:41 -08:00
2023-08-31 10:19:13 -07:00
2023-12-04 17:30:11 +00:00
2023-11-03 22:25:37 +00:00
2023-11-03 22:25:37 +00:00
2023-08-31 10:19:13 -07:00
2023-09-11 09:42:27 -07:00
2023-09-18 13:45:38 -07:00
2023-11-01 23:29:49 +00:00
2023-09-01 08:53:53 -07:00
2023-10-10 18:11:23 -07:00
2023-10-10 18:11:23 -07:00
2023-10-10 18:11:23 -07:00
2023-11-29 23:57:05 +00:00
2023-10-12 14:17:56 +00:00
2023-10-12 14:17:56 +00:00
2023-10-09 10:05:28 +00:00
2023-10-31 23:27:03 +00:00
2023-10-27 12:04:07 +03:00
2023-12-06 11:26:03 +00:00
2023-10-10 08:32:01 -07:00
2023-10-06 11:26:06 +00:00
2023-11-03 22:25:37 +00:00
2023-11-14 17:55:05 +00:00
2023-09-05 13:45:12 -07:00
2023-09-01 08:53:53 -07:00
2023-09-01 08:53:53 -07:00
2023-09-05 13:45:12 -07:00
2023-09-29 18:15:53 +00:00
2023-09-05 13:45:12 -07:00
2023-10-10 10:05:51 -07:00
2023-12-05 01:39:29 +00:00
2023-10-18 20:13:08 +00:00
2023-10-10 10:05:51 -07:00
2023-11-29 07:05:42 +00:00
2023-09-05 13:45:12 -07:00
2023-12-06 16:40:24 +00:00
2023-12-06 16:40:24 +00:00
2023-11-29 07:05:42 +00:00
2023-11-29 23:57:05 +00:00
2023-09-05 13:45:12 -07:00
2023-09-05 13:45:12 -07:00
2023-10-11 07:19:30 +00:00
2023-09-11 09:42:27 -07:00
2023-09-11 09:42:27 -07:00
2023-10-09 09:10:23 -07:00
2023-09-05 13:45:12 -07:00
2023-09-05 13:45:12 -07:00
2023-11-28 17:59:19 +00:00
2023-11-17 18:50:33 +00:00
2023-10-10 18:11:23 -07:00
2023-11-29 23:57:05 +00:00
2023-10-23 14:37:43 -07:00
2023-11-28 05:20:07 +00:00
2023-09-11 09:42:27 -07:00
2023-09-05 13:45:12 -07:00
2023-10-10 18:11:23 -07:00
2023-09-21 10:06:21 -07:00
2023-11-03 12:34:16 -07:00
2023-12-07 16:03:24 +00:00
2023-09-05 13:45:12 -07:00
2023-09-05 13:45:12 -07:00
2023-09-05 13:45:12 -07:00
2023-09-05 13:45:12 -07:00
2023-11-27 21:02:35 +00:00
2023-11-27 21:02:35 +00:00
2023-12-07 12:51:20 -08:00
2023-09-05 13:45:12 -07:00
2023-10-16 08:48:13 +00:00
2023-09-05 13:45:12 -07:00
2023-11-29 07:05:42 +00:00
2023-09-22 15:27:05 -07:00
2023-09-11 09:42:27 -07:00
2023-09-05 13:45:12 -07:00
2023-10-18 15:44:31 +00:00
2023-11-03 22:25:37 +00:00
2023-11-20 15:24:41 -08:00
2023-10-26 23:55:38 +00:00
2023-09-05 13:45:12 -07:00
2023-10-10 18:11:23 -07:00
2023-09-28 16:06:53 +00:00
2023-10-26 16:23:33 -07:00
2023-11-10 13:14:14 -08:00
2023-11-03 22:25:37 +00:00
2023-09-05 13:45:12 -07:00
2023-09-07 17:50:45 -07:00
2023-08-31 08:52:06 -07:00
2023-11-28 18:38:55 +00:00
2023-09-11 09:42:27 -07:00
2023-11-29 08:29:06 +00:00
2023-10-23 14:37:43 -07:00
2023-10-16 21:03:59 +00:00
2023-09-11 09:42:27 -07:00
2023-09-28 01:42:16 +00:00
2023-12-04 21:30:07 +00:00
2023-10-18 16:03:08 +00:00
2023-12-05 19:30:15 +00:00
2023-12-05 19:30:15 +00:00
2023-09-05 13:41:10 -07:00
2023-11-07 10:26:23 -08:00
2023-11-07 10:26:23 -08:00
2023-11-07 10:26:23 -08:00
2023-10-26 23:55:38 +00:00
2023-09-22 15:27:05 -07:00
2023-09-07 17:50:45 -07:00
2023-10-26 23:55:38 +00:00
2023-11-29 07:05:42 +00:00
2023-09-05 13:45:12 -07:00
2023-09-05 13:45:12 -07:00
2023-09-11 09:42:27 -07:00
2023-09-05 13:45:12 -07:00
2023-12-08 15:34:01 +00:00
2023-09-11 09:42:27 -07:00
2023-10-26 00:26:20 +00:00
2023-12-08 15:34:01 +00:00
2023-09-05 13:45:12 -07:00
2023-09-11 09:42:27 -07:00
2023-08-28 22:27:39 +00:00
2023-11-07 10:26:23 -08:00
2023-09-05 13:45:12 -07:00
2023-11-29 21:03:32 +00:00
2023-10-10 11:05:26 -07:00
2023-12-06 15:12:27 -08:00
2023-09-11 09:42:27 -07:00
2023-12-07 21:20:06 +00:00
2023-12-07 21:20:06 +00:00
2023-11-29 21:03:32 +00:00
2023-10-10 18:11:23 -07:00
2023-09-05 13:45:12 -07:00