dart format
This commit is contained in:
@@ -9,7 +9,11 @@ class LoginErrorBanner extends StatelessWidget {
|
||||
final String? message;
|
||||
final String? details;
|
||||
|
||||
const LoginErrorBanner({required this.message, required this.details, super.key});
|
||||
const LoginErrorBanner({
|
||||
required this.message,
|
||||
required this.details,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -26,14 +30,26 @@ class LoginErrorBanner extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
child: InkWell(
|
||||
onTap: details != null
|
||||
? () => InfoDialog.show(context, details!, copyable: true, title: 'Fehlerdetails')
|
||||
? () => InfoDialog.show(
|
||||
context,
|
||||
details!,
|
||||
copyable: true,
|
||||
title: 'Fehlerdetails',
|
||||
)
|
||||
: null,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 12,
|
||||
vertical: 10,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.error_outline, size: 20, color: theme.colorScheme.onErrorContainer),
|
||||
Icon(
|
||||
Icons.error_outline,
|
||||
size: 20,
|
||||
color: theme.colorScheme.onErrorContainer,
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
Expanded(
|
||||
child: Text(
|
||||
@@ -50,7 +66,8 @@ class LoginErrorBanner extends StatelessWidget {
|
||||
Icon(
|
||||
Icons.chevron_right,
|
||||
size: 20,
|
||||
color: theme.colorScheme.onErrorContainer.withValues(alpha: 0.7),
|
||||
color: theme.colorScheme.onErrorContainer
|
||||
.withValues(alpha: 0.7),
|
||||
),
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user