discord_form_flutter

Creator: coderz1093

Last updated:

0 purchases

discord_form_flutter Image
discord_form_flutter Images

Languages

Categories

Add to Cart

Description:

discord form flutter

discord_form_flutter #
A simple, clean designed form. Similar to Discord's. ⚡

Getting Started #
Add this to your package's pubspec.yaml file: #
dependencies:
discord_form_flutter: ^0.0.1
copied to clipboard
Import the package #
import 'package:discord_form_flutter/discord_form_flutter.dart';
copied to clipboard
How to Use #
Call the DiscordForm widget and pass the reqiured parameters.
You can use it as a complete page. ✔
final _emailController = TextEditingController();
final _formKey = GlobalKey<FormState>();

@override
Widget build(BuildContext context) {
return MaterialApp(
home: DiscordForm(
formKey: _formKey,
children: [
DiscordFormField(
hint: 'Email',
icon: Icon(Icons.email),
onChanged: (value) {
// handle textfield changes
},
controller: _emailController,
),
SizedBox(height: 35),
DiscordButton(
onPressed: () {
// handle button press
},
text: Text(
'Login',
),
),
],
),
);
}
copied to clipboard
Example #
You can find an example here

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.