express_app 0.0.3-b
express_app: ^0.0.3-b

Flutter Android iOS web

A package to easily separate the app into Routers, Controller, Models, and Views.

Express App #

A plugin for Flutter to better separate the app into Routers, Controller, Models, and Views easily.

Status #

Please note version's number. This is still a beta, and only published to get feedback to include suggestions while working on it.

Examples #

void main() {
  runApp(
    Express(
      router: ExpressRouter(
        routes: {
          '/': ExpressRoute(
            build: (BuildContext context) => FirstPage(),
            actions: {
              'next': '/secondPage',
            },
          ),
          '/secondPage': ExpressRoute(
            build: (BuildContext context) => SecondPage(),
            actions: {
              'back': '/',
            }
          )
        },
      ),
      app: MaterialApp(
        home: FirstPage(),
      ),
    ).render()
  );
}

For more examples, especially for using ExpressHome, please refer to their folder.

TODO #

-[x] Find a way for the StatefulWidget to work

-[ ] Work on passing data

-[x] Modify the flow to call the router instead of simply calling the navigator.

-[x] Link pages using actions or events to allow a whole graph of connections easily.

-[ ] Use models

For more, pelase visit our bugs pages on GitHub.

0
likes
75
pub points
9%
popularity

A package to easily separate the app into Routers, Controller, Models, and Views.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ismaeel.abuabdallah@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on express_app