-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsearcharticle.dart
56 lines (53 loc) · 1.89 KB
/
searcharticle.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//system package
import 'package:flutter/material.dart';
class SearchArticle extends StatefulWidget {
SearchArticle({Key key}) : super(key: key);
@override
_SearchArticleState createState() => _SearchArticleState();
}
class _SearchArticleState extends State<SearchArticle> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Search Article'),
leading: new IconButton(
icon: new Icon(Icons.arrow_back),
onPressed: () => Navigator.of(context).pop(),
),
),
body: SingleChildScrollView(
child: Column(
children: <Widget>[
Column(
children: <Widget>[
TextFormField(
maxLines: 1,
decoration: InputDecoration(
prefixIcon: const Icon(
Icons.search,
color: Colors.grey,
),
hintText: ' titre',
border: OutlineInputBorder(
borderRadius:
BorderRadius.all(Radius.circular(10.0)),
),
),
// The validator receives the text that the user has entered.
validator: (value) {
if (value.isEmpty) {
return 'Please enter some text';
}
return null;
},
),
],
),
Text(' button search'),
],
),
)));
}
}