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
class UITextStyles { | |
static TextStyle loginStyle = TextStyle( | |
fontFamily: 'Montserrat', | |
color: UIHelper.WHITE, | |
fontSize: 45, | |
fontWeight: FontWeight.w500); | |
} | |
Text("login", style: UITextStyles.loginStyle))); //Bu şekilde kullanabilirsiniz. |
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
class UIBoxDecoration { | |
static BoxDecoration boxStyle = BoxDecoration( | |
boxShadow: [ | |
BoxShadow( | |
color: Colors.blue, | |
blurRadius: 10.0, | |
spreadRadius: 1.0, | |
offset: Offset( | |
3.0, | |
3.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
BorderRadius get _loginButtonBorderStyle => BorderRadius.only( | |
bottomRight: Radius.circular(80), | |
topRight: Radius.circular(80), | |
); | |
// Bu şekilde kullanabilirsiniz. | |
BoxDecoration(color: Colors.white, borderRadius: _loginButtonBorderStyle), |
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
//Kullanımda ise _loginButton yazmanız yeterlidir. | |
Widget get _loginButton => InkWell( | |
borderRadius: _loginButtonBorderStyle, | |
onTap: () {}, | |
child: Container( | |
height: UIHelper.dynamicHeight(300), | |
width: UIHelper.dynamicWidth(500), | |
child: Center( | |
child: Text(UIHelper.signIn.toUpperCase(), | |
style: UITextStyles.buttonStyle), |
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
// Kullanımda ise _textField("Username", true), yazmanız yeterlidir. | |
Widget _textField(String text, bool obscure) => TextField( | |
style: TextStyle(color: Colors.white), | |
textAlign: TextAlign.left, | |
obscureText: obscure, | |
autocorrect: false, | |
cursorColor: Colors.white, | |
maxLines: 1, | |
); |
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 ThemeData theme = ThemeData( | |
primaryColor: Colors.blue, | |
accentColor: Colors.blueAccent, | |
textTheme: TextTheme(body1: TextStyle(color: Colors.lightBlue)) | |
); |
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
class UITextHelper { | |
static final String name = "Name"; | |
static final String email = "Email address"; | |
static final String username = "Username"; | |
static final String password = "Password"; | |
static final String login = "Login"; | |
static final String forgetPassword = "Forget Password?"; | |
} | |
UITextHelper.DEGISKEN_ADI // Bu şekilde kullanabilirsiniz. |
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
class UIColorHelper { | |
static const Color PRIMARY_COLOR = Color(0xFF1A237E); | |
static const Color LIGHT_COLOR = Color(0xFF534BAE); | |
static const Color DARK_COLOR = Color(0xFF000051); | |
static const Color TEXT_COLOR = Color(0xFFFFFFFF); | |
} | |
UIColorHelper.DEGISKEN_ADI // Bu şekilde kullanabilirsiniz. |
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
class _HomeBodyScreenState extends State<HomeBodyScreen> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: UIColorHelper.LIGHT_COLOR, | |
body: _body, | |
); | |
} | |
Widget get _body => |
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
Widget get _bottomNavigationBar => BottomAppBar( | |
notchMargin: 0, | |
shape: CircularNotchedRectangle(), | |
child: Container( | |
height: 56, | |
child: Padding( | |
padding: const EdgeInsets.symmetric(horizontal: 50), | |
child: Row( | |
crossAxisAlignment: CrossAxisAlignment.center, | |
mainAxisAlignment: MainAxisAlignment.spaceBetween, |