Skip to content

Conversation

@redbrogdon
Copy link
Contributor

  • Updates flutter_module to:
    • Import Provider
    • Track counter state via a ChangeNotifier model that uses a method channel as its source of truth.
  • Updates Android to use a cached engine
  • Updates both Android and iOS to:
    • Set up their end of a method channel
    • Track and display counter value between displays of the flutter view.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to ask someone who knows more about Swift to review that part.

@redbrogdon
Copy link
Contributor Author

@matthew-carroll PTAL

@redbrogdon
Copy link
Contributor Author

Updated based on offline discussion with @matthew-carroll. Mgmt of the counter's state is much simplified.

@redbrogdon
Copy link
Contributor Author

@matthew-carroll, PTAL.

Copy link

@matthew-carroll matthew-carroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for updating after our chat earlier this week!

override fun onCreate() {
super.onCreate()

FlutterMain.startInitialization(this)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, these 2 calls will no longer be required once I merge flutter/engine#12806

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the reminder. Just CCed myself on your PR.

@redbrogdon redbrogdon merged commit 947042d into flutter:master Oct 11, 2019
@redbrogdon redbrogdon deleted the state branch October 11, 2019 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants