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 _githubCode => InkWell( | |
| child: Text("https://github.com/mukireus/flutter_ui_template_login"), | |
| onTap: () async { | |
| if (await canLaunch("url")) { | |
| await launch("url"); | |
| } | |
| }, | |
| ); |
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
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_template_login/screens/grape_login.dart'; | |
| import 'package:flutter_template_login/screens/muz_login.dart'; | |
| import 'package:flutter_template_login/ui/ui_helper.dart'; | |
| class HomeList { | |
| Widget navigateScreen; | |
| String imagePath; | |
| HomeList({ |
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
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_screenutil/flutter_screenutil.dart'; | |
| class UIHelper { | |
| // STRING | |
| static final String createAccount = "Create\nAccount"; | |
| static final String welcomeBack = "Welcome\nBack"; | |
| static final String name = "Name"; | |
| static final String hello = "Hello"; | |
| static final String email = "Email address"; |
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
| import 'package:flutter/material.dart'; | |
| class LoginPage extends StatefulWidget { | |
| @override | |
| _LoginPageState createState() => _LoginPageState(); | |
| } | |
| class _LoginPageState extends State<LoginPage> { | |
| @override | |
| Widget build(BuildContext context) { |
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
| 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 |
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<String> adlar = new List(5); | |
| String ad1 = "Mehmet"; | |
| String ad2 = "Ahmet"; | |
| adlar.add(ad1); | |
| adlar.add(ad2); | |
| //__________________________________// | |
| List<String> adlar = new List(5); | |
| adlar.add("Mehmet"); |
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
| int sayi = 10; | |
| String mesaj; | |
| if (sayi == 10) { | |
| mesaj = "Doğru"; | |
| } else mesaj = "Yanlış"; | |
| print(mesaj); | |
| //__________________________________// | |
| mesaj = (sayi == 10) ? "Doğru" : "Yanlış"; |
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
| children: <Widget>[ | |
| TextField( | |
| decoration: InputDecoration( | |
| labelText: "Kullanıcı Adı", | |
| ), | |
| ), | |
| TextField( | |
| decoration: InputDecoration( | |
| labelText: "Şifre", | |
| ), |
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
| static Widget textField(String labelText) => TextField( | |
| decoration : InputDecoration(labelText: labelText), | |
| ); | |
| children: <Widget>[ | |
| textField("Kullanıcı Adı"), | |
| textField("Şifre"), | |
| ], |
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 build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Clean Code', | |
| theme: ThemeData(), | |
| home: Scaffold( | |
| appBar: _appBar, | |
| body: _body, | |
| bottomNavigationBar: _bottomNavigationBar, | |
| drawer: _drawer, | |
| floatingActionButton: _fabButton, |
OlderNewer