Set search cycle by api

This commit is contained in:
hanie.khodkari
2025-05-10 19:18:12 +03:30
parent b43d5c90fd
commit 14a6f06a43
11 changed files with 76 additions and 17 deletions
@@ -8,6 +8,7 @@ class ResultSearchBox extends StatelessWidget {
required double deviceBlockSize,
required this.text,
required this.onChanged,
required this.onTap,
this.text2 = 'ID',
this.textInputType = TextInputType.number,
}) : _deviceBlockSize = deviceBlockSize,
@@ -18,6 +19,7 @@ class ResultSearchBox extends StatelessWidget {
final String text;
final String text2;
final dynamic onChanged;
final dynamic onTap;
final TextInputType textInputType;
@override
@@ -40,6 +42,20 @@ class ResultSearchBox extends StatelessWidget {
labelText: 'Search by $text $text2',
isDense: true,
contentPadding: EdgeInsets.symmetric(vertical: 2, horizontal: 3),
suffixIcon: InkWell(
onTap: onTap,
child: Container(
margin: EdgeInsets.all(5),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.black,
),
child: Icon(
Icons.input,
color: Colors.white,
),
),
),
),
style: TextStyle(
fontWeight: FontWeight.w700,
@@ -52,8 +52,7 @@ class TestResultSearchBox extends StatelessWidget {
color: Colors.black,
),
child: Icon(
Icons.space_bar,
// size: 4 * _deviceBlockSize,
Icons.input,
color: Colors.white,
),
),