fix: formatting
This commit is contained in:
@@ -14,11 +14,7 @@ class PinEntryView extends StatefulWidget {
|
||||
final PinEntryMode mode;
|
||||
final VoidCallback? onSuccess;
|
||||
|
||||
const PinEntryView({
|
||||
super.key,
|
||||
required this.mode,
|
||||
this.onSuccess,
|
||||
});
|
||||
const PinEntryView({super.key, required this.mode, this.onSuccess});
|
||||
|
||||
@override
|
||||
State<PinEntryView> createState() => _PinEntryViewState();
|
||||
@@ -167,9 +163,9 @@ class _PinEntryViewState extends State<PinEntryView> {
|
||||
height: 20,
|
||||
child: _localError != null
|
||||
? Text(
|
||||
_localError!,
|
||||
style: TextStyle(color: scheme.error, fontSize: 13),
|
||||
)
|
||||
_localError!,
|
||||
style: TextStyle(color: scheme.error, fontSize: 13),
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
),
|
||||
const Spacer(flex: 2),
|
||||
@@ -210,7 +206,9 @@ class _PinDots extends StatelessWidget {
|
||||
shape: BoxShape.circle,
|
||||
color: isFilled ? scheme.primary : Colors.transparent,
|
||||
border: Border.all(
|
||||
color: isFilled ? scheme.primary : scheme.onSurface.withValues(alpha: 0.3),
|
||||
color: isFilled
|
||||
? scheme.primary
|
||||
: scheme.onSurface.withValues(alpha: 0.3),
|
||||
width: 1.4,
|
||||
),
|
||||
),
|
||||
@@ -314,18 +312,18 @@ class _KeypadButton extends StatelessWidget {
|
||||
child: icon != null
|
||||
? Icon(icon, color: scheme.onSurface.withValues(alpha: 0.8))
|
||||
: Text(
|
||||
label!,
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: onTap == null
|
||||
? scheme.onSurface.withValues(alpha: 0.3)
|
||||
: scheme.onSurface,
|
||||
),
|
||||
),
|
||||
label!,
|
||||
style: TextStyle(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: onTap == null
|
||||
? scheme.onSurface.withValues(alpha: 0.3)
|
||||
: scheme.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user