Skip to content

Commit 066a058

Browse files
committed
fix: invisible clickable delete button on Saved page
1 parent a524d17 commit 066a058

2 files changed

Lines changed: 26 additions & 22 deletions

File tree

lib/widgets/reorderable_bus_stop_list.dart

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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
),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: stops_sg
22
description: A Flutter application that displays live bus timings for bus stops in Singapore
33

4-
version: 1.1.4+24
4+
version: 1.1.5+25
55

66
environment:
77
sdk: ">=3.4.0 <4.0.0"

0 commit comments

Comments
 (0)