To get a better feeling of what using a framework entails, let us examine the project that exists as the example folder in the dartlero
project and as a separate project called dartlero_example
at GitHub (there are slight differences due to the pub specifications). Get your copy in a separate folder with:
git clone git://github.com/dzenanr/dartlero_example.git
Then, open the folder dartlero_example
in Dart Editor.
This app defines the simplest possible model: a project model with only one concept, a Project
. We will now use the Dartlero framework. The dependency on this package is indicated in the pubspec.yaml
file so that it can be managed by pub:
name: dartlero_example version: 1.0.0 author: Dzenan Ridjanovic <[email protected]> description: An example how to use Dartlero, a model framework for educational purposes. homepage: http://ondart.me/ dependencies: dartlero: git: git://github.com/dzenanr/dartlero.git
The library file dartlero_example.dart
in...