Formatting and dart analyze fixes

This commit is contained in:
Nathan Anderson
2023-11-14 17:34:11 -07:00
parent f23805a3a8
commit 1668ab8947
3 changed files with 13 additions and 13 deletions
+4 -3
View File
@@ -31,8 +31,9 @@ class CardTextField extends StatefulWidget {
final InputDecoration? inputDecoration; // TODO unapplied style
final BoxDecoration? boxDecoration; // TODO unapplied style
final BoxDecoration? errorBoxDecoration; // TODO unapplied style
final BoxDecoration? errorBoxDecoration; // TODO unapplied style
final double width;
/// Callback that returns the completed CardDetails object
final void Function(CardDetails) onCardDetailsComplete;
final double? height;
@@ -403,7 +404,7 @@ class CardTextFieldState extends State<CardTextField> {
}
/// Used when `_isWideFormat == false`, scrolls
/// the `_horizontalScrollController` to a given offset
/// the `_horizontalScrollController` to a given offset
void _scrollRow(CardEntryStep step) {
const dur = Duration(milliseconds: 150);
const cur = Curves.easeOut;
@@ -515,7 +516,7 @@ class CardNumberInputFormatter implements TextInputFormatter {
}
/// Formatter that adds a backslash '/' character in between
/// the month and the year for the expiration date.
/// the month and the year for the expiration date.
class CardExpirationFormatter implements TextInputFormatter {
@override
TextEditingValue formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) {