File tree 2 files changed +2
-8
lines changed 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -818,11 +818,6 @@ mixin SchedulerBinding on BindingBase {
818
818
/// Consider using [scheduleWarmUpFrame] instead if the goal is to update the
819
819
/// rendering as soon as possible (e.g. at application startup).
820
820
void scheduleForcedFrame () {
821
- // TODO(chunhtai): Removes the if case once the issue is fixed
822
- // https://github.com/flutter/flutter/issues/45131
823
- if (! framesEnabled)
824
- return ;
825
-
826
821
if (_hasScheduledFrame)
827
822
return ;
828
823
assert (() {
Original file line number Diff line number Diff line change @@ -177,10 +177,9 @@ void main() {
177
177
tester.binding.scheduleFrame ();
178
178
expect (tester.binding.hasScheduledFrame, isFalse);
179
179
180
- // TODO(chunhtai): fix this test after workaround is removed
181
- // https://github.com/flutter/flutter/issues/45131
182
180
tester.binding.scheduleForcedFrame ();
183
- expect (tester.binding.hasScheduledFrame, isFalse);
181
+ expect (tester.binding.hasScheduledFrame, isTrue);
182
+ await tester.pump ();
184
183
185
184
int frameCount = 0 ;
186
185
tester.binding.addPostFrameCallback ((Duration duration) {
You can’t perform that action at this time.
0 commit comments