Git Product home page Git Product logo

mobx_provider's Introduction

Hi there ๐Ÿ‘‹

I am Karim Tarek, Software engineer who likes backend, Databases and solving technical problems

  • ๐ŸŒฑ Iโ€™m currently learning Software architecture, Distributed system design, Database & Networking fundamentals
  • ๐ŸŒฑ I like code optimization, readability, clean code principles
  • ๐Ÿ’ฌ Ask me about .NetCore, C#, SQL
  • ๐Ÿ“ซ How to reach me:

mobx_provider's People

Contributors

kaarimtareek avatar wbemanuel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mobx_provider's Issues

Tried to use `context.read<dynamic>` inside either a `build` method or the `update` callback of a provider

โ•โ•โ•โ•โ•โ•โ•โ• Exception caught by widgets library โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Tried to use context.read<dynamic> inside either a build method or the update callback of a provider.

This is unsafe to do so. Instead, consider using context.watch<dynamic>.
If you used context.read voluntarily as a performance optimisation, the solution
is instead to use context.select.

'package:provider/src/provider.dart':
Failed assertion: line 544 pos 9: 'debugIsInInheritedProviderCreate ||
(!debugDoingBuild && !debugIsInInheritedProviderUpdate)'

######################
This is my code:
#####################

 class HomeScreen extends StatelessWidget {
 Size _size;
 HomePageStore _store;

 @override
 Widget build(BuildContext context) {
 return MobxStatefulProvider<HomePageStore>( // I got error in this line which comes from **MobxStatefulProvider**
     initFunction: (store) {
       _store = store;
       _size = MediaQuery.of(context).size;
  },

  builder: (context, store) => Scaffold(
        //appBar
        body: SafeArea(
          child: Stack(
            children: <Widget>[
              _buildDrawerContainer(),
              MobxWidgetProvider<HomePageStore>(
                builder: (context, store) => _buildHomeContainer(),
              ),
            ],
          ),
        ),
        //bottomNavigationBar
      ),
    );
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.