-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from kritikaparmar-programmer/flutter
main branch update
- Loading branch information
Showing
17 changed files
with
2,405 additions
and
62 deletions.
There are no files selected for viewing
Submodule HealthCheck
deleted from
cfb898
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), | ||
), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
], | ||
); | ||
} | ||
} |
Oops, something went wrong.