Skip to content

Commit e1f3ff8

Browse files
authored
Merge pull request #234 from kritikaparmar-programmer/flutter
main branch update
2 parents 83644bc + 8ac8d86 commit e1f3ff8

File tree

17 files changed

+2405
-62
lines changed

17 files changed

+2405
-62
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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+
// 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: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
}
50+
}

0 commit comments

Comments
 (0)