Comments (2)
@hcwidget
Widget app(WidgetRef ref) => MaterialApp(
...
routes: {
Routes.auth: (_) => const SignInScreen(),
Routes.home: (_) => const HomePage(),
Routes.store: (_) => const StorePage(),
Routes.profile: (_) => const ProfilePage(),
Routes.loading: (_) => const Scaffold(
body: SafeArea(child: Center(child: CircularProgressIndicator()))),
},
);
class Routes {
static const auth = '/auth';
static const home = '/home';
static const store = '/store';
static const profile = '/profile';
static const loading = '/loading';
}
from functional_widget.
Defining static properties is not supported and likely isn't something that can be supported.
I'd suggest waiting until Dart implements static extensions, at which point you should be able to define them on your own. In the meantime, you likely can implement your code without relying on a static function
from functional_widget.
Related Issues (20)
- build_runner watch can not run HOT 1
- Functional Widget VS Code Extension HOT 14
- @cwidget not generating ConsumerWidget as expected HOT 3
- Does this work with hot reload? HOT 1
- Incompatible with the latest dart_code_metrics due to outdated analyzer dependency HOT 1
- Positional optional parameters are not propagated HOT 2
- Difference from Builder? HOT 2
- Not generating any output files - probably not compatible with latest flutter / dependencies etc HOT 4
- Local varible _....... starts with a underscore
- SingleChildStatelessWidget? HOT 1
- [Full Code] Support for `StatefulWidget`, like `StatefulBuilder`
- Incompatibility with freezed 2.4.2 due to analyzer 5.2.0 HOT 1
- Is it possible to jump to the functional widget declaration instead of the generated widget when ctrl+clicking the generated widget? HOT 2
- "BuildContext context" issue if not first param HOT 2
- Null safety HOT 4
- Cannot generate widgets HOT 5
- Key? can't be assigned to the parameter type Key HOT 1
- Reasoning behind equality generation deletion HOT 3
- Can't currently have `functional_widget` and `freezed` both installed at the same time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from functional_widget.