Skip to content

Instantly share code, notes, and snippets.

@mukireus
Created December 10, 2019 14:11
Show Gist options
  • Save mukireus/fdcb86a3b2c868d2cf154adfc6a6f0ca to your computer and use it in GitHub Desktop.
Save mukireus/fdcb86a3b2c868d2cf154adfc6a6f0ca to your computer and use it in GitHub Desktop.
muz_login.dart
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_template_login/ui/styles/text_styles.dart';
import 'package:flutter_template_login/ui/ui_helper.dart';
import 'package:flutter_template_login/ui/widgets/button_widgets.dart';
import 'package:flutter_template_login/ui/widgets/forgetPassButton_widget.dart';
import 'package:flutter_template_login/ui/widgets/textField_widget.dart';
class MuzLogin extends StatefulWidget {
@override
_MuzLoginState createState() => _MuzLoginState();
}
class _MuzLoginState extends State<MuzLogin> {
@override
Widget build(BuildContext context) {
ScreenUtil.instance.init(context);
return Scaffold(
backgroundColor: UIHelper.MUZ_BACKGROUND_COLOR,
body: SingleChildScrollView(
child: Column(
children: <Widget>[
_topBar,
Column(
children: <Widget>[
new TextFieldWidget(
labelText: UIHelper.email,
requiredText: UIHelper.emailRequired,
textInputType: TextInputType.emailAddress,
),
new PasswordFieldWidget(
labelText: UIHelper.password,
requiredText: UIHelper.passwordRequired,
textInputType: TextInputType.visiblePassword,
),
new ForgetPasswordButton(
color: UIHelper.MUZ_PRIMARY_COLOR,
rightPadding: 30,
),
new ButtonWidget(
color: UIHelper.MUZ_PRIMARY_COLOR,
shadow: UIHelper.MUZ_BUTTONSHADOW,
text: UIHelper.signUp,
topPadding: 70,
),
new ButtonWidget(
color: UIHelper.SPOTIFY_COLOR,
shadow: UIHelper.SPOTIFY_SHADOW,
text: UIHelper.loginSpotify,
topPadding: 10,
),
_signUpButton
],
),
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment