-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61700ce
commit e7bdfdf
Showing
10 changed files
with
146 additions
and
118 deletions.
There are no files selected for viewing
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,29 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class RoundedButton extends StatelessWidget { | ||
RoundedButton({this.title, this.colour, @required this.onPressed}); | ||
final Color colour; | ||
final String title; | ||
final Function onPressed; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Padding( | ||
padding: EdgeInsets.symmetric(vertical: 16.0), | ||
child: Material( | ||
elevation: 5.0, | ||
color: colour, | ||
borderRadius: BorderRadius.circular(30.0), | ||
child: MaterialButton( | ||
onPressed: onPressed, | ||
minWidth: 200.0, | ||
height: 42.0, | ||
child: Text( | ||
title, | ||
style: TextStyle(color: Colors.white), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
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,35 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
const kSendButtonTextStyle = TextStyle( | ||
color: Colors.lightBlueAccent, | ||
fontWeight: FontWeight.bold, | ||
fontSize: 18.0, | ||
); | ||
|
||
const kMessageTextFieldDecoration = InputDecoration( | ||
contentPadding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 20.0), | ||
hintText: 'Type your message here...', | ||
border: InputBorder.none, | ||
); | ||
|
||
const kMessageContainerDecoration = BoxDecoration( | ||
border: Border( | ||
top: BorderSide(color: Colors.lightBlueAccent, width: 2.0), | ||
), | ||
); | ||
|
||
const kTextFieldDecoration = InputDecoration( | ||
hintText: 'Enter value', | ||
contentPadding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 20.0), | ||
border: OutlineInputBorder( | ||
borderRadius: BorderRadius.all(Radius.circular(32.0)), | ||
), | ||
enabledBorder: OutlineInputBorder( | ||
borderSide: BorderSide(color: Colors.blueAccent, width: 1.0), | ||
borderRadius: BorderRadius.all(Radius.circular(32.0)), | ||
), | ||
focusedBorder: OutlineInputBorder( | ||
borderSide: BorderSide(color: Colors.blueAccent, width: 2.0), | ||
borderRadius: BorderRadius.all(Radius.circular(32.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
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
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
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
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
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
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
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