-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f62c57
commit 01b7604
Showing
2 changed files
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class FormService { | ||
// form key | ||
GlobalKey<FormState> get formKey => GlobalKey<FormState>(); | ||
static final GlobalKey<FormState> _signUpFormFormKey = GlobalKey<FormState>(); | ||
static final GlobalKey<FormState> _signInFormFormKey = GlobalKey<FormState>(); | ||
static final GlobalKey<FormState> _addPhoneFormKey = GlobalKey<FormState>(); | ||
|
||
// get sign up form key | ||
GlobalKey<FormState> get signUpFormKey => GlobalKey<FormState>(); | ||
|
||
// get sign in form key | ||
GlobalKey<FormState> get logInFormKey => GlobalKey<FormState>(); | ||
|
||
// get add phone form key | ||
GlobalKey<FormState> get phoneFormKey => GlobalKey<FormState>(); | ||
GlobalKey<FormState> get signUpFormKey => _signUpFormFormKey; | ||
GlobalKey<FormState> get signInFormKey => _signInFormFormKey; | ||
GlobalKey<FormState> get addPhoneFormKey => _addPhoneFormKey; | ||
} |