This file contains hidden or 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
final screenHeight = MediaQuery.of(context).size.height; | |
final statusBarHeight = MediaQuery.of(context).padding.top; |
This file contains hidden or 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
Color getColorFromHex(String hexColor) { | |
hexColor = hexColor.replaceAll("0xFF", ""); | |
if (hexColor.length == 6) { | |
hexColor = "FF" + hexColor; | |
} | |
if (hexColor.length == 8) { | |
return Color(int.parse("0x$hexColor")); | |
} | |
return Colors.transparent; | |
} |
This file contains hidden or 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
Row( | |
children: [ | |
Container( | |
width : MediaQuery.of(context).size.width * 0.06, | |
color : Colors.red[100], | |
child : Text("aaa") | |
), | |
Container( | |
width : MediaQuery.of(context).size.width * 0.64, | |
color : Colors.red[200], |
This file contains hidden or 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
FadeInImage.assetNetwork( | |
placeholder: 'assets/images/logo.png', | |
image: _backgroundImage, | |
// fit: BoxFit.cover, | |
fit: BoxFit.cover, | |
height: 20.0, | |
) |
This file contains hidden or 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
List<DiscussionModel> discussionList = []; | |
final ValueNotifier<List<DiscussionModel>> _discussions = ValueNotifier<List<DiscussionModel>>([]); |
This file contains hidden or 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
void initState() { | |
super.initState(); | |
_checkConnection().then((connected) { | |
print('CONNECTION STATUS $connected'); | |
getSettings(context, checkToken); | |
}); | |
} | |
This file contains hidden or 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
TextField( | |
controller: _controllerFirstName, | |
obscureText: false, | |
style: TextStyle( | |
color: Color(0xff373944), | |
fontFamily: fontMedium, | |
// fontWeight: FontWeight.w200, | |
fontSize: 16.0, | |
), | |
keyboardType: TextInputType.text, |
This file contains hidden or 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
child: GestureDetector( | |
onTap: (){ | |
FocusScope.of(context).requestFocus(new FocusNode()); | |
}, | |
child: Scaffold( |
This file contains hidden or 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
TextField( | |
obscureText: false, | |
style: TextStyle(fontSize: 16), | |
keyboardType: TextInputType.text, | |
decoration: InputDecoration( | |
hintText: "Enter your last name", | |
hintStyle: TextStyle(color: Color(0xffC2C2C2)), | |
fillColor: Color(0xffF5F5F5), | |
filled: true, | |
// labelText: 'Label Text', |
This file contains hidden or 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
Container( | |
width : MediaQuery.of(context).size.width * 0.50, | |
child: TextField( | |
// controller: emailCon, | |
obscureText: false, | |
style: TextStyle(fontSize: 16), | |
keyboardType: TextInputType.emailAddress, | |
decoration: InputDecoration( | |
contentPadding: EdgeInsets.fromLTRB(20.0, 15.0, 20.0, 15.0), | |
labelText: 'Email', |