Skip to content

Commit

Permalink
Merge pull request #234 from kritikaparmar-programmer/flutter
Browse files Browse the repository at this point in the history
main branch update
  • Loading branch information
utkarsh0702 authored Jun 4, 2021
2 parents 83644bc + 8ac8d86 commit e1f3ff8
Show file tree
Hide file tree
Showing 17 changed files with 2,405 additions and 62 deletions.
1 change: 0 additions & 1 deletion HealthCheck
Submodule HealthCheck deleted from cfb898
Binary file added HealthCheck_App/assets/images/fetal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HealthCheck_App/assets/images/malaria.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added HealthCheck_App/assets/images/stroke.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions HealthCheck_App/lib/Resources/RoundedButton.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import 'package:flutter/material.dart';


class RoundedButton extends StatelessWidget {
final String text;
final Function press;
final Color color, textColor;
const RoundedButton({
Key key,
this.text,
this.press,
this.color,
this.textColor = Colors.white,
}) : super(key: key);

@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;
return Padding(
padding: const EdgeInsets.only(bottom: 20),
child: Container(

width: size.width * 0.9,
decoration: BoxDecoration(
color: color,
borderRadius: BorderRadius.circular(20)
),
child: ClipRRect(

borderRadius: BorderRadius.circular(29),
// ignore: deprecated_member_use
child: FlatButton(
padding: EdgeInsets.symmetric(vertical: 20, horizontal: 40),

onPressed: press,

child: Text(
text,
style: TextStyle(color: textColor, fontSize: 20.0),
),
),
),
),
);
}
}
50 changes: 50 additions & 0 deletions HealthCheck_App/lib/Resources/TextformField.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import 'package:flutter/material.dart';

class TextFField extends StatelessWidget {

final String hintText;
final ValueChanged<String> onChanged;
final validator;
final keyboardinput;

const TextFField({
Key key,
this.hintText,
this.onChanged,
this.validator,
this.keyboardinput
}) : super(key: key);



@override
Widget build(BuildContext context) {
return Column(
children: [
Container(
width: MediaQuery.of(context).size.width * 0.9,
child: TextFormField(
onChanged: onChanged,
validator: validator,
style: TextStyle(color:Colors.black),
decoration: InputDecoration(
hintText: hintText,
hintStyle: TextStyle(color: Colors.grey),
fillColor: Colors.white,
filled: true,
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.grey.withOpacity(0.10)),
borderRadius: BorderRadius.circular(20.0),
),
enabledBorder: OutlineInputBorder(
borderSide:
BorderSide(color: Color(0x42000000).withOpacity(0.05)),
borderRadius: BorderRadius.circular(20.0))
),
),
),
SizedBox(height:25)
],
);
}
}
Loading

0 comments on commit e1f3ff8

Please sign in to comment.