Skip to content

Commit

Permalink
added search ui
Browse files Browse the repository at this point in the history
  • Loading branch information
raysummee committed Jul 22, 2020
1 parent 1d9227f commit efcb4ba
Showing 1 changed file with 54 additions and 2 deletions.
56 changes: 54 additions & 2 deletions lib/ux/pages/searchPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,60 @@ import 'package:flutter/material.dart';
class SearchPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(

return Scaffold(
body: Column(
children: <Widget>[
Container(
alignment: Alignment.center,
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
width: double.infinity,
height: 100,
decoration: BoxDecoration(
color: Colors.lightBlue
),
child: SafeArea(
child: Stack(
alignment: Alignment.center,
children: <Widget>[
ClipRRect(
borderRadius: BorderRadius.circular(50),
child: TextFormField(
decoration: InputDecoration(
contentPadding: EdgeInsets.fromLTRB(20, 0, 50, 0),
border: InputBorder.none,
filled: true,
hintText: "Search...",
fillColor: Colors.grey.shade200
),
),
),
Container(
alignment: Alignment.centerRight,
child: ClipRRect(
borderRadius: BorderRadius.circular(18),
child: Material(
color: Colors.transparent,
borderRadius: BorderRadius.circular(18),
child: IconButton(
icon: Icon(
Icons.search
),
onPressed: (){}
),
),
),
)
],
),
),
),
Expanded(
child: Center(
child: Text("No Data yet!"),
)
)
],
)
);
}
}

0 comments on commit efcb4ba

Please sign in to comment.