mirror of
https://github.com/Iconica-Development/flutter_registration.git
synced 2025-05-19 05:23:43 +02:00
Updated documentation
This commit is contained in:
parent
154e7a80d1
commit
4eaa584f17
1 changed files with 39 additions and 15 deletions
52
README.md
52
README.md
|
@ -1,32 +1,56 @@
|
||||||
[](https://github.com/Iconica-Development) [](URL TO GITHUB ACTIONS) [](https://github.com/tenhobi/effective_dart)
|
[](https://github.com/Iconica-Development) [](https://github.com/Iconica-Development/flutter_registration/actions/new) [](https://github.com/tenhobi/effective_dart)
|
||||||
|
|
||||||
Short description of what your package is, why you created it. What issues it fixes and how it works. Also mention the available platforms
|
|
||||||
|
|
||||||
## Setup
|
Registration plug-in.
|
||||||
|
|
||||||
What setup steps are neccesarry and why>
|
## Install
|
||||||
|
|
||||||
<details>
|
To use this package, add `flutter_registration` as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/platform-integration/platform-channels).
|
||||||
<summary>PLATFORM</summary>
|
|
||||||
|
|
||||||
specific platform steps
|
## Configure
|
||||||
|
|
||||||
</details>
|
To configure the registration plug-in use the ```RegistrationScreen``` widget.
|
||||||
|
|
||||||
## How to use
|
|
||||||
|
|
||||||
How can we use the package descibe the most common ways with examples in
|
|
||||||
```dart
|
```dart
|
||||||
codeblocks
|
void main() {
|
||||||
|
runApp(
|
||||||
|
MaterialApp(
|
||||||
|
home: RegistrationScreen(
|
||||||
|
registrationOptions: RegistrationOptions(
|
||||||
|
registrationRepository: ExampleRegistrationRepository(),
|
||||||
|
registrationSteps: RegistrationOptions.defaultSteps,
|
||||||
|
afterRegistration: () {
|
||||||
|
debugPrint('Registered!');
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
You are required to provide your own RegistrationRepository, this can be done using the parameter ```registrationRepository``` within the RegistrationsOptions which can be assigned to the RegistrationScreen widget.
|
||||||
|
|
||||||
|
A RegistrationRepository is responsible for sending the provided user details (email address and password for example) to an API.
|
||||||
|
|
||||||
|
An example for creating a RegistrationRepository is specificied below:
|
||||||
|
```dart
|
||||||
|
class ExampleRegistrationRepository with RegistrationRepository {
|
||||||
|
@override
|
||||||
|
Future<bool> register(HashMap values) {
|
||||||
|
debugPrint('register: $values');
|
||||||
|
return Future.value(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Issues
|
## Issues
|
||||||
|
|
||||||
Please file any issues, bugs or feature request as an issue on our [GitHub](REPO URL) page. Commercial support is available if you need help with integration with your app or services. You can contact us at [support@iconica.nl](mailto:support@iconica.nl).
|
Please file any issues, bugs or feature request as an issue on our [GitHub](https://github.com/Iconica-Development/flutter_registration) page. Commercial support is available if you need help with integration with your app or services. You can contact us at [support@iconica.nl](mailto:support@iconica.nl).
|
||||||
|
|
||||||
## Want to contribute
|
## Want to contribute
|
||||||
|
|
||||||
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our [contribution guide](./CONTRIBUTING.md) and send us your [pull request](URL TO PULL REQUEST TAB IN REPO).
|
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our [contribution guide](./CONTRIBUTING.md) and send us your [pull request](https://github.com/Iconica-Development/flutter_registration/pulls).
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue