@@ -556,10 +556,6 @@ class _SourceSheetState extends State<SourceSheet> with SingleTickerProviderStat
556556 widget.tabController.index = originalIndex;
557557 controller.open ();
558558 },
559- onLongPress: () {
560- widget.tabController.index = originalIndex;
561- controller.open ();
562- },
563559 child: child,
564560 );
565561 },
@@ -571,8 +567,33 @@ class _SourceSheetState extends State<SourceSheet> with SingleTickerProviderStat
571567 label: Text (
572568 plugin.name,
573569 overflow: TextOverflow .ellipsis,
574- style: TextStyle (fontSize: 15 ),
570+ style: TextStyle (
571+ fontSize: 15 ,
572+ color: status == 'success'
573+ ? Theme .of (context).colorScheme.onSurface
574+ : Color .lerp (
575+ Theme .of (context).colorScheme.onSurface,
576+ status == 'pending'
577+ ? Colors .blueGrey
578+ : status == 'noresult'
579+ ? Colors .orange
580+ : Colors .red,
581+ Theme .of (context).brightness == Brightness .dark ? 0.5 : 0.8 ,)
582+ ),
583+ ),
584+ shape: RoundedRectangleBorder (
585+ borderRadius: BorderRadius .circular (9 ),
586+ side: BorderSide (
587+ color: status == 'success'
588+ ? Color .lerp (Theme .of (context).colorScheme.outlineVariant, Theme .of (context).colorScheme.secondary, 0.15 )!
589+ : Color .lerp (
590+ Theme .of (context).colorScheme.outlineVariant,
591+ status == 'pending' ? Colors .blueGrey : status == 'noresult' ? Colors .orange : Colors .red,
592+ 0.15 ,
593+ )! ,
594+ ),
575595 ),
596+ materialTapTargetSize: MaterialTapTargetSize .shrinkWrap,
576597 ),
577598 ),
578599 childWhenDragging: Opacity (
@@ -583,6 +604,7 @@ class _SourceSheetState extends State<SourceSheet> with SingleTickerProviderStat
583604 overflow: TextOverflow .ellipsis,
584605 style: TextStyle (fontSize: 15 ),
585606 ),
607+ materialTapTargetSize: MaterialTapTargetSize .shrinkWrap,
586608 ),
587609 ),
588610 child: ActionChip (
0 commit comments