mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-23 03:25:26 +00:00
dart fix --apply --code=no_leading_underscores_for_local_identifiers
This commit is contained in:
parent
1bebe64c10
commit
288f0bbc94
2 changed files with 7 additions and 7 deletions
|
@ -15,18 +15,18 @@ class ConfigSection extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
final border = BorderSide(color: borderColor ?? Utils.configSectionBorder(context));
|
||||
|
||||
List<Widget> _children = [];
|
||||
List<Widget> mappedChildren = [];
|
||||
final len = children.length;
|
||||
|
||||
for (var i = 0; i < len; i++) {
|
||||
_children.add(children[i]);
|
||||
mappedChildren.add(children[i]);
|
||||
|
||||
if (i < len - 1) {
|
||||
double pad = 15;
|
||||
if (children[i + 1].runtimeType.toString() == 'ConfigButtonItem') {
|
||||
pad = 0;
|
||||
}
|
||||
_children.add(
|
||||
mappedChildren.add(
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: pad),
|
||||
child: Divider(height: 1, color: Utils.configSectionBorder(context)),
|
||||
|
@ -44,7 +44,7 @@ class ConfigSection extends StatelessWidget {
|
|||
border: Border(top: border, bottom: border),
|
||||
color: Utils.configItemBackground(context),
|
||||
),
|
||||
child: Column(children: _children),
|
||||
child: Column(children: mappedChildren),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
|
|
@ -172,7 +172,7 @@ class _EnrollmentScreenState extends State<EnrollmentScreen> {
|
|||
}
|
||||
|
||||
Widget _codeEntry() {
|
||||
final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
|
||||
final GlobalKey<FormState> formKey = GlobalKey<FormState>();
|
||||
|
||||
String? validator(String? value) {
|
||||
if (value == null || value.isEmpty) {
|
||||
|
@ -182,7 +182,7 @@ class _EnrollmentScreenState extends State<EnrollmentScreen> {
|
|||
}
|
||||
|
||||
Future<void> onSubmit() async {
|
||||
final bool isValid = _formKey.currentState?.validate() ?? false;
|
||||
final bool isValid = formKey.currentState?.validate() ?? false;
|
||||
if (!isValid) {
|
||||
return;
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ class _EnrollmentScreenState extends State<EnrollmentScreen> {
|
|||
),
|
||||
);
|
||||
|
||||
final form = Form(key: _formKey, child: Platform.isAndroid ? input : ConfigSection(children: [input]));
|
||||
final form = Form(key: formKey, child: Platform.isAndroid ? input : ConfigSection(children: [input]));
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
|
|
Loading…
Reference in a new issue