mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 19:18:55 +03:30
Set search cycle by api
This commit is contained in:
@@ -68,6 +68,7 @@ class _CycleResultScreenState extends State<CycleResultScreen> {
|
||||
final _media = MediaQuery.of(context);
|
||||
final double _devicewidth = _media.size.width;
|
||||
final double _deviceBlockSize = _devicewidth / 100;
|
||||
var searchVal;
|
||||
return SafeArea(
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
@@ -188,9 +189,17 @@ class _CycleResultScreenState extends State<CycleResultScreen> {
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
text: 'cycle',
|
||||
onChanged: (value) {
|
||||
Provider.of<CyclesProvider>(context,
|
||||
listen: false)
|
||||
.search(value);
|
||||
searchVal = value;
|
||||
// Provider.of<CyclesProvider>(context,
|
||||
// listen: false)
|
||||
// .search(value);
|
||||
},
|
||||
onTap: () async {
|
||||
var cycles = await Provider.of<CyclesProvider>(
|
||||
context,
|
||||
listen: false);
|
||||
cycles.setLoading();
|
||||
await cycles.search(searchVal);
|
||||
},
|
||||
),
|
||||
SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user