You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.9 KiB
61 lines
1.9 KiB
3 years ago
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
import 'package:teso/Pages/Sub_Pages/Explore/search.dart';
|
||
|
|
||
|
buildSearch(
|
||
|
BuildContext context, TextEditingController searchkey, Function select) {
|
||
|
return Container(
|
||
|
height: 60.0,
|
||
|
//margin: EdgeInsets.all(10.0),
|
||
|
padding: EdgeInsets.all(10.0),
|
||
|
child: Material(
|
||
|
color: Colors.grey[300],
|
||
|
elevation: 4.0,
|
||
|
borderRadius: BorderRadius.circular(12.0),
|
||
|
shadowColor: Theme.of(context).backgroundColor,
|
||
|
child: Row(
|
||
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||
|
children: [
|
||
|
//buildSmartSearch(context),
|
||
|
new Expanded(
|
||
|
child: InkWell(
|
||
|
onTap: () => Navigator.push(
|
||
|
context,
|
||
|
MaterialPageRoute(
|
||
|
builder: (BuildContext context) => Lookup(),
|
||
|
),
|
||
|
),
|
||
|
child: TextField(
|
||
|
autofocus: false,
|
||
|
enabled: false,
|
||
|
textAlign: TextAlign.start,
|
||
|
controller: searchkey,
|
||
|
style: TextStyle(
|
||
|
color: Colors.white,
|
||
|
),
|
||
|
decoration: InputDecoration(
|
||
|
border: InputBorder.none,
|
||
|
//contentPadding: EdgeInsets.only(top: 14.0),
|
||
|
prefixIcon: Icon(
|
||
|
Icons.search,
|
||
|
color: Colors.white,
|
||
|
),
|
||
|
hintText: "Search",
|
||
|
hintStyle: TextStyle(color: Colors.grey),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
// GestureDetector(
|
||
|
// child: Container(
|
||
|
// padding: EdgeInsets.symmetric(horizontal: 20.0),
|
||
|
// child: Icon(MaterialIcons.camera_alt, size: 30, color: tesoBlue),
|
||
|
// ),
|
||
|
// onTap: () => select(),
|
||
|
// ),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|