A new Flutter project.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
- First we need install two plugins for dart and flutter by Setting -> Plugins -> Marketplace and install them
- Restart the IDEA
- Select the specific device and run
flutter doctor
Add dependency to your pubspec.yaml
dependencies:
d_validation:
git:
url: https://github.com/vtd182/d_validation
ref: master
// ...other dependencyRun on terminal to sync package
flutter pub get
For class document, run
dart doc
The generated file will be in /doc/api, to watch them, run
npx serve ./doc/api
This will allow us to watch them on web browser.
To run the example application on main.dart, first we need to build them:
flutter build apk|ios|macos|web
Then attach app to specific devices. For example, if we build flutter app to web
flutter build web
Serve it
npx serve ./build/web