Skip to content

Commit af33583

Browse files
authored
Merge pull request #230 from utkarsh0702/flutter
Flutter App Update
2 parents efcc968 + 240578e commit af33583

File tree

15 files changed

+1548
-657
lines changed

15 files changed

+1548
-657
lines changed

HealthCheck

Lines changed: 0 additions & 1 deletion
This file was deleted.
12.7 KB
Loading
92.7 KB
Loading
18 KB
Loading
Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,46 @@
1-
import 'package:flutter/material.dart';
2-
3-
4-
class RoundedButton extends StatelessWidget {
5-
final String text;
6-
final Function press;
7-
final Color color, textColor;
8-
const RoundedButton({
9-
Key key,
10-
this.text,
11-
this.press,
12-
this.color,
13-
this.textColor = Colors.white,
14-
}) : super(key: key);
15-
16-
@override
17-
Widget build(BuildContext context) {
18-
Size size = MediaQuery.of(context).size;
19-
return Padding(
20-
padding: const EdgeInsets.only(bottom: 20),
21-
child: Container(
22-
23-
width: size.width * 0.9,
24-
decoration: BoxDecoration(
25-
color: color,
26-
borderRadius: BorderRadius.circular(20)
27-
),
28-
child: ClipRRect(
29-
30-
borderRadius: BorderRadius.circular(29),
31-
child: FlatButton(
32-
padding: EdgeInsets.symmetric(vertical: 20, horizontal: 40),
33-
34-
onPressed: press,
35-
36-
child: Text(
37-
text,
38-
style: TextStyle(color: textColor, fontSize: 18),
39-
),
40-
),
41-
),
42-
),
43-
);
44-
}
45-
}
1+
import 'package:flutter/material.dart';
2+
3+
4+
class RoundedButton extends StatelessWidget {
5+
final String text;
6+
final Function press;
7+
final Color color, textColor;
8+
const RoundedButton({
9+
Key key,
10+
this.text,
11+
this.press,
12+
this.color,
13+
this.textColor = Colors.white,
14+
}) : super(key: key);
15+
16+
@override
17+
Widget build(BuildContext context) {
18+
Size size = MediaQuery.of(context).size;
19+
return Padding(
20+
padding: const EdgeInsets.only(bottom: 20),
21+
child: Container(
22+
23+
width: size.width * 0.9,
24+
decoration: BoxDecoration(
25+
color: color,
26+
borderRadius: BorderRadius.circular(20)
27+
),
28+
child: ClipRRect(
29+
30+
borderRadius: BorderRadius.circular(29),
31+
// ignore: deprecated_member_use
32+
child: FlatButton(
33+
padding: EdgeInsets.symmetric(vertical: 20, horizontal: 40),
34+
35+
onPressed: press,
36+
37+
child: Text(
38+
text,
39+
style: TextStyle(color: textColor, fontSize: 20.0),
40+
),
41+
),
42+
),
43+
),
44+
);
45+
}
46+
}
Lines changed: 49 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,50 @@
1-
import 'package:flutter/material.dart';
2-
3-
4-
5-
6-
7-
class TextFField extends StatelessWidget {
8-
9-
final String hintText;
10-
final ValueChanged<String> onChanged;
11-
final validator;
12-
final keyboardinput;
13-
14-
const TextFField({
15-
Key key,
16-
this.hintText,
17-
this.onChanged,
18-
this.validator,
19-
this.keyboardinput
20-
}) : super(key: key);
21-
22-
23-
24-
@override
25-
Widget build(BuildContext context) {
26-
return Column(
27-
children: [
28-
Container(
29-
width: MediaQuery.of(context).size.width * 0.9,
30-
child: TextFormField(
31-
onChanged: onChanged,
32-
validator: validator,
33-
style: TextStyle(color:Colors.black),
34-
decoration: InputDecoration(
35-
hintText: hintText,
36-
hintStyle: TextStyle(color: Colors.black),
37-
fillColor: Colors.white,
38-
filled: true,
39-
focusedBorder: OutlineInputBorder(
40-
borderSide: BorderSide(color: Colors.grey.withOpacity(0.10)),
41-
borderRadius: BorderRadius.circular(20.0),
42-
),
43-
enabledBorder: OutlineInputBorder(
44-
borderSide:
45-
BorderSide(color: Color(0x42000000).withOpacity(0.05)),
46-
borderRadius: BorderRadius.circular(20.0))
47-
),
48-
),
49-
),
50-
SizedBox(height:25)
51-
],
52-
);
53-
}
1+
import 'package:flutter/material.dart';
2+
3+
class TextFField extends StatelessWidget {
4+
5+
final String hintText;
6+
final ValueChanged<String> onChanged;
7+
final validator;
8+
final keyboardinput;
9+
10+
const TextFField({
11+
Key key,
12+
this.hintText,
13+
this.onChanged,
14+
this.validator,
15+
this.keyboardinput
16+
}) : super(key: key);
17+
18+
19+
20+
@override
21+
Widget build(BuildContext context) {
22+
return Column(
23+
children: [
24+
Container(
25+
width: MediaQuery.of(context).size.width * 0.9,
26+
child: TextFormField(
27+
onChanged: onChanged,
28+
validator: validator,
29+
style: TextStyle(color:Colors.black),
30+
decoration: InputDecoration(
31+
hintText: hintText,
32+
hintStyle: TextStyle(color: Colors.grey),
33+
fillColor: Colors.white,
34+
filled: true,
35+
focusedBorder: OutlineInputBorder(
36+
borderSide: BorderSide(color: Colors.grey.withOpacity(0.10)),
37+
borderRadius: BorderRadius.circular(20.0),
38+
),
39+
enabledBorder: OutlineInputBorder(
40+
borderSide:
41+
BorderSide(color: Color(0x42000000).withOpacity(0.05)),
42+
borderRadius: BorderRadius.circular(20.0))
43+
),
44+
),
45+
),
46+
SizedBox(height:25)
47+
],
48+
);
49+
}
5450
}

0 commit comments

Comments
 (0)