From 288f0bbc9409487d91837554fc576bdffc5ca66d Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Thu, 13 Feb 2025 11:22:24 -0600 Subject: [PATCH] `dart fix --apply --code=no_leading_underscores_for_local_identifiers` --- lib/components/config/ConfigSection.dart | 8 ++++---- lib/screens/EnrollmentScreen.dart | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/components/config/ConfigSection.dart b/lib/components/config/ConfigSection.dart index 26967ac..15f813c 100644 --- a/lib/components/config/ConfigSection.dart +++ b/lib/components/config/ConfigSection.dart @@ -15,18 +15,18 @@ class ConfigSection extends StatelessWidget { Widget build(BuildContext context) { final border = BorderSide(color: borderColor ?? Utils.configSectionBorder(context)); - List _children = []; + List 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), ), ], ); diff --git a/lib/screens/EnrollmentScreen.dart b/lib/screens/EnrollmentScreen.dart index 1033d06..736eb31 100644 --- a/lib/screens/EnrollmentScreen.dart +++ b/lib/screens/EnrollmentScreen.dart @@ -172,7 +172,7 @@ class _EnrollmentScreenState extends State { } Widget _codeEntry() { - final GlobalKey _formKey = GlobalKey(); + final GlobalKey formKey = GlobalKey(); String? validator(String? value) { if (value == null || value.isEmpty) { @@ -182,7 +182,7 @@ class _EnrollmentScreenState extends State { } Future 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 { ), ); - 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: [