Fix lint warnings
This commit is contained in:
parent
04911bb32e
commit
daeb5e933b
1 changed files with 4 additions and 7 deletions
|
@ -5,7 +5,6 @@ import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
import 'package:flutter_password_strength/flutter_password_strength.dart';
|
import 'package:flutter_password_strength/flutter_password_strength.dart';
|
||||||
import 'package:logging/logging.dart';
|
|
||||||
import 'package:photos/core/configuration.dart';
|
import 'package:photos/core/configuration.dart';
|
||||||
import 'package:photos/models/billing_plan.dart';
|
import 'package:photos/models/billing_plan.dart';
|
||||||
import 'package:photos/services/billing_service.dart';
|
import 'package:photos/services/billing_service.dart';
|
||||||
|
@ -27,8 +26,6 @@ class EmailEntryPage extends StatefulWidget {
|
||||||
class _EmailEntryPageState extends State<EmailEntryPage> {
|
class _EmailEntryPageState extends State<EmailEntryPage> {
|
||||||
static const kPasswordStrengthThreshold = 0.4;
|
static const kPasswordStrengthThreshold = 0.4;
|
||||||
|
|
||||||
static final _logger = Logger("EmailEntry");
|
|
||||||
|
|
||||||
final _config = Configuration.instance;
|
final _config = Configuration.instance;
|
||||||
final _passwordController1 = TextEditingController(),
|
final _passwordController1 = TextEditingController(),
|
||||||
_passwordController2 = TextEditingController();
|
_passwordController2 = TextEditingController();
|
||||||
|
@ -39,8 +36,8 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
||||||
bool _hasAgreedToE2E = false;
|
bool _hasAgreedToE2E = false;
|
||||||
bool _password1Visible = false;
|
bool _password1Visible = false;
|
||||||
bool _password2Visible = false;
|
bool _password2Visible = false;
|
||||||
FocusNode _password1FocusNode = FocusNode();
|
final _password1FocusNode = FocusNode();
|
||||||
FocusNode _password2FocusNode = FocusNode();
|
final _password2FocusNode = FocusNode();
|
||||||
bool _password1InFocus = false;
|
bool _password1InFocus = false;
|
||||||
bool _password2InFocus = false;
|
bool _password2InFocus = false;
|
||||||
|
|
||||||
|
@ -414,7 +411,7 @@ class PricingWidget extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
Container _buildPlans(BuildContext context, BillingPlans plans) {
|
Container _buildPlans(BuildContext context, BillingPlans plans) {
|
||||||
final planWidgets = List<BillingPlanWidget>();
|
final planWidgets = <BillingPlanWidget>[];
|
||||||
for (final plan in plans.plans) {
|
for (final plan in plans.plans) {
|
||||||
final productID = Platform.isAndroid ? plan.androidID : plan.iosID;
|
final productID = Platform.isAndroid ? plan.androidID : plan.iosID;
|
||||||
if (productID != null && productID.isNotEmpty) {
|
if (productID != null && productID.isNotEmpty) {
|
||||||
|
@ -452,7 +449,7 @@ class PricingWidget extends StatelessWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: const [
|
||||||
Icon(
|
Icon(
|
||||||
Icons.close,
|
Icons.close,
|
||||||
size: 12,
|
size: 12,
|
||||||
|
|
Loading…
Add table
Reference in a new issue