Skip to content

Commit

Permalink
bringing support for previous version of flutter sdk for flutter_mobx
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanpodila committed May 14, 2022
1 parent 4d320bf commit 635c88c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flutter_mobx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 2.0.6
## 2.0.6 - 2.0.6+1

- Adding support for previous versions of Flutter SDK

Expand Down
2 changes: 1 addition & 1 deletion flutter_mobx/lib/flutter_mobx.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ export 'package:flutter_mobx/src/stateful_observer_widget.dart';
export 'package:flutter_mobx/src/stateless_observer_widget.dart';

/// The version as per `pubspec.yaml`
const version = '2.0.6';
const version = '2.0.6+1';
4 changes: 1 addition & 3 deletions flutter_mobx/lib/src/observer_widget_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ mixin ObserverElementMixin on ComponentElement {
// 3. https://stackoverflow.com/questions/71367080

// if there's a current frame,
// ignore: unnecessary_non_null_assertion
final schedulerPhase =
_ambiguate(SchedulerBinding.instance)!.schedulerPhase;
final shouldWait =
Expand All @@ -102,8 +101,7 @@ mixin ObserverElementMixin on ComponentElement {
// print('hi wait phase=$schedulerPhase');

// wait for the end of that frame.
// ignore: unnecessary_non_null_assertion
await SchedulerBinding.instance.endOfFrame;
await _ambiguate(SchedulerBinding.instance)!.endOfFrame;

// If it is disposed after this frame, we should no longer call `markNeedsBuild`
if (_reaction == null) return;
Expand Down
2 changes: 1 addition & 1 deletion flutter_mobx/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_mobx
description:
Flutter integration for MobX. It provides a set of Observer widgets that automatically rebuild
when the tracked observables change.
version: 2.0.6
version: 2.0.6+1

homepage: https://github.com/mobxjs/mobx.dart

Expand Down

0 comments on commit 635c88c

Please sign in to comment.