brianegan / brianegan/flutter_architecture_samples

ChangeNotify + Provider example run in flutter 2.0

Open
#205 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Dart
Stars
8.9k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

How to fix below problem

ChangeNotify cannot run in flutter 2.0

/home/ykwings/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/lib/shared_preferences.dart:146:15: Error: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'.
- 'MethodChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/home/ykwings/flutter/packages/flutter/lib/src/services/platform_channel.dart').

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.