fixing a ton of sloppy mess...
This commit is contained in:
@@ -466,7 +466,7 @@ class _Pill extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
color: color.withOpacity(0.16),
|
||||
color: color.withValues(alpha: 0.16),
|
||||
borderRadius: BorderRadius.circular(999),
|
||||
border: Border.all(color: color)),
|
||||
child: Padding(
|
||||
@@ -506,12 +506,10 @@ class _EmptyPanel extends StatelessWidget {
|
||||
final IconData icon;
|
||||
final String title;
|
||||
final String message;
|
||||
final Widget? action;
|
||||
const _EmptyPanel(
|
||||
{required this.icon,
|
||||
required this.title,
|
||||
required this.message,
|
||||
this.action});
|
||||
required this.message});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -533,10 +531,6 @@ class _EmptyPanel extends StatelessWidget {
|
||||
const TextStyle(fontWeight: FontWeight.w800, fontSize: 18)),
|
||||
const SizedBox(height: 6),
|
||||
Text(message, textAlign: TextAlign.center),
|
||||
if (action != null) ...[
|
||||
const SizedBox(height: 12),
|
||||
action!,
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user