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
import { AppRegistry } from "react-native"; | |
import React from "react"; | |
import App from "./App"; | |
import { name as appName } from "./app.json"; | |
import { Provider } from "react-redux"; | |
import configureStore from "./redux/stores/store"; | |
const store = configureStore(); | |
const RNRedux = () => ( |
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
import 'package:flutter/material.dart'; | |
import 'package:flutter_hello_world/features/login/login.dart'; | |
import 'router.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
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
import 'package:flutter/material.dart'; | |
import 'features/home/home.dart'; | |
import 'features/login/login.dart'; | |
final routes = <String, WidgetBuilder>{ | |
ScreenName.LoginPage.toString(): (context) => LoginPage(), | |
ScreenName.HomePage.toString(): (context) => HomePage(), | |
}; |
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
import 'package:flutter/material.dart'; | |
import 'state.dart'; | |
class LoginPage extends StatefulWidget { | |
@override | |
LoginStateWidget createState() => new LoginStateWidget(); | |
} |
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
import 'package:flutter/material.dart'; | |
import 'package:flutter_hello_world/resource/strings/en.dart'; | |
import 'package:flutter_hello_world/resource/strings/name.dart'; | |
import 'package:flutter_hello_world/resource/style/text.dart'; | |
class HomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
final welcome = Padding( | |
padding: EdgeInsets.all(8.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
import 'package:flutter/material.dart'; | |
import 'package:flutter_hello_world/resource/style/text.dart'; | |
class EditText extends TextFormField { | |
EditText(String hintText, bool hideText) | |
: super( | |
autofocus: false, | |
obscureText: hideText, | |
style: NormalText, | |
decoration: InputDecoration( |
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
import 'package:flutter/material.dart'; | |
const NormalText = TextStyle(fontSize: 16.0, color: Colors.black); | |
const TitleText = | |
TextStyle(fontSize: 28.0, color: Colors.black, fontWeight: FontWeight.bold); |
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
const String AppTitle = 'app_title', | |
Login = 'login', | |
Hint_Email = 'hint_email', | |
Hint_Password = 'hint_password', | |
Home_Message = 'home_message', | |
Home_Title = 'home_title'; |
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
import 'package:flutter_hello_world/resource/strings/name.dart'; | |
final values = { | |
AppTitle: 'Flutter - Hello World', | |
Login: 'Log In', | |
Hint_Email: 'Email', | |
Hint_Password: 'Password', | |
Home_Message: | |
'This is a guide to creating your first Flutter app.\nFollow me -\n\nMedium :\nhttps://medium.com/@sahoosunilkumar \n\nGithub :\nhttps://github.com/sahoosunilkumar \n\nStackoverflow:\nhttps://stackoverflow.com/users/111988/sunil-kumar-sahoo', | |
Home_Title: 'Welcome Developers' |