- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
lib
- Giffy Dialog source code.
test
- widget tests.
example
- example app that uses Giffy Dialog.
Repo has Travis CI configured to run test on pull requests, so be sure to run tests locally before submitting PR.
Run tests with flutter test --no-test-assets
command.
Option --no-test-assets
is required since Flutter can't load assets for some reason. Might be resolved later. Read more here.
Testing Image.network
requires provideMockedNetworkImages
function from image_test_utils
package. Read more in Iiro Krankka blog.
Projects contains documentation comments starting with ///
- this is doc comments,
dartdoc automatically generates API reference based on these comments.
To generate documentation locally
- Set FLUTTER_ROOT path to your flutter sdk directory
export FLUTTER_ROOT=~/flutter-sdk-path/flutter
- Use this command to generate the documentation
$FLUTTER_ROOT/bin/cache/dart-sdk/bin/dartdoc --exclude 'dart:async,dart:collection,dart:convert,dart:core,dart:developer,dart:io,dart:isolate,dart:math,dart:typed_data,dart:ui,dart:ffi,dart:html,dart:js,dart:js_util'
It will generate /doc
directory where you'll find api/index.html
containing locally generated documentation.
Documentation directory is added to .gitignore so it is not committed.