mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:28:56 +03:30
Set search cycle by api
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user