96 Commits

Author SHA1 Message Date
Chris Bracken 23df3e6bcb Revert "Add support for on/off switch labels when built on iOS 13. (#12467)" (#15370)
Broke a fake implementation of Accessibility features in the framework.
While this change is unlikely to break any users in the wild, this is a
breaking change by the standards set out in our documentation and
should follow the breaking change announcement process. Details can be
found at https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes.

The error in question:

    Missing concrete implementation of 'getter AccessibilityFeatures.onOffSwitchLabels' • packages/flutter_test/test/window_test.dart:252:7 • non_abstract_class_inherits_abstract_member

This reverts commit d12f2a6096.
2020-01-09 10:33:51 -08:00
brandondiamond d12f2a6096 Add support for on/off switch labels when built on iOS 13. (#12467) 2020-01-08 18:26:44 -08:00
chunhtai 1f1e2ba58e reland add lifecycle enum (#13767)
This reverts commit 8ebb318401.
2019-11-13 11:26:25 -08:00
liyuqian 629930e888 Prefer SchedulerBinding.addTimingsCallback (#13728)
This doc update solves our TODO in https://github.com/flutter/flutter/pull/43676/files#diff-6a35a9a692c9af7473ba1a0a74c979c8R223
2019-11-07 14:05:43 -08:00
chunhtai 8ebb318401 Revert "Issues/39832 reland (#13642)" (#13720)
This reverts commit 1bfb928e07.
2019-11-06 11:41:36 -08:00
chunhtai 1bfb928e07 Issues/39832 reland (#13642)
* Reland "Added new lifecycle enum (#11913)"
2019-11-05 14:52:16 -08:00
chunhtai fe0838e948 Revert "Added new lifecycle enum (#11913)" (#13632)
This reverts commit 02a4790074.
2019-11-04 13:40:20 -08:00
chunhtai 02a4790074 Added new lifecycle enum (#11913) 2019-11-04 12:33:41 -08:00
Chinmay Garde 86e3ebb748 Allow embedders to specify arbitrary data to the isolate on launch. (#13047)
Since this is currently only meant to be used by the embedding internally, the setter in Objective-C is only exposed via the FlutterDartProject private class extension. Unit tests have been added to the shell_unittests harness.

Fixes https://github.com/flutter/flutter/issues/37641
2019-10-10 12:31:14 -07:00
Chinmay Garde 5b5fd7508c Revert "Support accessibility labels on iOS switches. (#12404)" (#12466)
This reverts commit 147d0c3805.
2019-09-26 12:52:52 -07:00
brandondiamond 147d0c3805 Support accessibility labels on iOS switches. (#12404) 2019-09-26 11:14:44 -07:00
liyuqian 4243324a03 Revert "Add a BroadcastStream to FrameTiming (#11041)" (#11841)
This reverts commit e97ed36e58.

Reason for revert: Stream is considered a bad API: https://github.com/flutter/engine/pull/11041#issuecomment-526892247
2019-09-05 10:41:55 -07:00
liyuqian e97ed36e58 Add a BroadcastStream to FrameTiming (#11041)
Without this, developers have to override `onReportTimings` to listen for `FrameTiming`.
That can potentially break previous `onReportTimings` listeners if they forget to call
the old listener in their new callback.

This PR replaces the similar RP in the framework: https://github.com/flutter/flutter/pull/38574

Once this PR landed, we'll have to create another framework PR to use the stream to replace
`onReportTimings` usages.

Once that's done, we can then propose the breaking change of removing the deprecated
`onReportTimings`.
2019-08-19 10:52:16 -07:00
Shi-Hao Hong 014ab76ad0 Pass Android Q insets.systemGestureInsets to Window (#10413)
* Pass Android Q system gesture inset information from insets.systemGestureInsets to Window.systemGestureInsets
2019-08-16 13:42:56 -04:00
Dan Field 63b253d907 expose max depth on Window (#10414) 2019-08-02 20:37:24 -07:00
Jason Simmons 8d28215c8b Fix caching of Locale.toString (#9920) 2019-07-19 15:57:28 -07:00
Jason Simmons f20e9350d2 Fix failure of the onReportTimings window hook test (#9923) 2019-07-18 14:42:33 -07:00
liyuqian 92c4469a71 Improve window documentation (#9669)
To reflect Matt Carroll's recent (02/06/2019) email about promoting
`WidgetsBinding.instance.window` and demoting `ui.window`.

I have to manually search for Matt's email several times when I need
to access the Window object. Having it in the documentation would
help me do that much faster.
2019-07-08 14:40:21 -07:00
liyuqian a184037971 Send timings of the first frame without batching (#9424)
For https://github.com/flutter/flutter/issues/34867

Test added:
* ReportTimingsIsCalledImmediatelyAfterTheFirstFrame
2019-06-24 12:40:38 -07:00
liyuqian de350c4cbb Report timings faster (100ms) in profile/debug (#9287)
This should satisfy the low-latency need of DevTools.

Test added:
* ReportTimingsIsCalledSoonerInNonReleaseMode
* ReportTimingsIsCalledLaterInReleaseMode
2019-06-11 16:51:20 -07:00
liyuqian 9f088c65ee Add onReportTimings and FrameRasterizedCallback API (#8983)
Using it, a Flutter app can monitor missing frames in the release mode, and a custom Flutter runner (e.g., Fuchsia) can add a custom FrameRasterizedCallback.

Related issues:
https://github.com/flutter/flutter/issues/26154
https://github.com/flutter/flutter/issues/31444
https://github.com/flutter/flutter/issues/32447

Need review as soon as possible so we can merge this before the end of May to catch the milestone.

Tests added:
* NoNeedToReportTimingsByDefault
* NeedsReportTimingsIsSetWithCallback
* ReportTimingsIsCalled
* FrameRasterizedCallbackIsCalled
* FrameTimingSetsAndGetsProperly
* onReportTimings preserves callback zone
* FrameTiming.toString has the correct format

This will need a manual engine roll as the TestWindow defined in the framework needs to implement onReportTimings.
2019-06-06 10:42:48 -07:00
Dan Field 79c6ce19a1 Preserve safe area (#8848)
Preserve safe area on Window regardless of insets.
2019-05-31 09:24:38 -07:00
Dan Field 065fe5b210 remove unnecessary [new from docs (#8986) 2019-05-16 19:14:10 -07:00
Dan Field 2b1f9925e4 new lints (#8849)
Dart lints added:
* Avoid optional new
* Avoid optional const
* Prefer single quotes
* Prefer default assignment `=`
2019-05-07 16:10:21 -07:00
Jonah Williams 1d062db4db remove unecessary usage of runtimeType in dart:ui (#8844) 2019-05-04 00:24:41 -07:00