@@ -99,29 +99,33 @@ class ReorderableBusStopList extends ConsumerWidget {
9999 child: Row (
100100 mainAxisAlignment: MainAxisAlignment .end,
101101 children: [
102- AnimatedOpacity (
103- duration: const Duration (milliseconds: 600 ),
104- opacity: isEditing ? 1.0 : 0.0 ,
105- curve: isEditing
106- ? const Interval (0.5 , 1 )
107- : const Interval (0 , 0.25 ),
108- child: AnimatedSlide (
102+ IgnorePointer (
103+ ignoring: ! isEditing,
104+ child: AnimatedOpacity (
109105 duration: const Duration (milliseconds: 600 ),
110- offset:
111- isEditing ? Offset .zero : const Offset (0 , 0.25 ),
106+ opacity: isEditing ? 1.0 : 0.0 ,
112107 curve: isEditing
113- ? const Interval (0.5 , 1 ,
114- curve: Curves .easeOutCubic)
115- : const Interval (0 , 0.5 ,
116- curve: Curves .easeOutCubic),
117- child: Padding (
118- padding:
119- const EdgeInsetsDirectional .only (end: 8.0 ),
120- child: IconButton (
121- onPressed: () => onBusStopRemoved (busStop),
122- icon: Icon (
123- Icons .clear_rounded,
124- color: Theme .of (context).hintColor,
108+ ? const Interval (0.5 , 1 )
109+ : const Interval (0 , 0.25 ),
110+ child: AnimatedSlide (
111+ duration: const Duration (milliseconds: 600 ),
112+ offset: isEditing
113+ ? Offset .zero
114+ : const Offset (0 , 0.25 ),
115+ curve: isEditing
116+ ? const Interval (0.5 , 1 ,
117+ curve: Curves .easeOutCubic)
118+ : const Interval (0 , 0.5 ,
119+ curve: Curves .easeOutCubic),
120+ child: Padding (
121+ padding:
122+ const EdgeInsetsDirectional .only (end: 8.0 ),
123+ child: IconButton (
124+ onPressed: () => onBusStopRemoved (busStop),
125+ icon: Icon (
126+ Icons .clear_rounded,
127+ color: Theme .of (context).hintColor,
128+ ),
125129 ),
126130 ),
127131 ),
0 commit comments