Fixed bug - Loading Indicator now functions correctly
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class StationFilter extends StatefulWidget {
|
||||
const StationFilter({super.key, required this.onEditingComplete});
|
||||
final void Function(String filterText) onEditingComplete;
|
||||
const StationFilter({super.key, required this.onChanged});
|
||||
final void Function(String filterText) onChanged;
|
||||
|
||||
@override
|
||||
State<StationFilter> createState() => StationFilterState();
|
||||
@@ -22,15 +22,15 @@ class StationFilterState extends State<StationFilter> {
|
||||
child: IconButton(
|
||||
onPressed: () {
|
||||
filterController.clear();
|
||||
setState(() {});
|
||||
|
||||
widget.onChanged(filterController.text);
|
||||
},
|
||||
icon: Icon(Icons.delete),
|
||||
),
|
||||
),
|
||||
label: Text('Filter'),
|
||||
),
|
||||
onChanged: (_) => setState(() {}),
|
||||
onEditingComplete: () => widget.onEditingComplete(filterController.text),
|
||||
onChanged: (_) => widget.onChanged(filterController.text),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user