Click on the images and match the cell images! Memory Game
Visit : https://dartpad.dev/482dbd401031ab9f74b0fa3de705ad2f
Click on the images and match the cell images! Memory Game
Visit : https://dartpad.dev/482dbd401031ab9f74b0fa3de705ad2f
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. | |
| @override | |
| Widget build(BuildContext context) { |
A Flutter plugin for iOS and Android for picking images from the image library, and taking new pictures with the camera.
First, add image_picker as a dependency in your pubspec.yaml file.
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| import 'package:flutter/material.dart'; | |
| Widget appBarMain(BuildContext context) { | |
| return AppBar( | |
| title: Image.asset( | |
| "assets/images/logo.png", | |
| height: 40, | |
| ), | |
| elevation: 0.0, | |
| centerTitle: false, |
| import 'package:flutter/material.dart'; | |
| class SignIn extends StatefulWidget { | |
| @override | |
| _SignInState createState() => _SignInState(); | |
| } | |
| class _SignInState extends State<SignIn> { | |
| InputDecoration textFieldInputDecoration(String hintText) { | |
| return InputDecoration( | |
| hintText: hintText, | |
| hintStyle: TextStyle(color: Colors.white54), | |
| focusedBorder: | |
| UnderlineInputBorder(borderSide: BorderSide(color: Colors.white)), | |
| enabledBorder: | |
| UnderlineInputBorder(borderSide: BorderSide(color: Colors.white))); | |
| } |
| import 'package:chatapp/models/user.dart'; | |
| import 'package:chatapp/views/chat.dart'; | |
| import 'package:firebase_auth/firebase_auth.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:google_sign_in/google_sign_in.dart'; | |
| class AuthService { | |
| final FirebaseAuth _auth = FirebaseAuth.instance; | |
| User _userFromFirebaseUser(FirebaseUser user) { |
| singUp() async { | |
| if(formKey.currentState.validate()){ | |
| setState(() { | |
| isLoading = true; | |
| }); | |
| await authService.signUpWithEmailAndPassword(emailEditingController.text, | |
| passwordEditingController.text).then((result){ |
| class HomePage extends StatefulWidget { | |
| @override | |
| _HomePageState createState() => _HomePageState(); | |
| } | |
| class _HomePageState extends State<HomePage> { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( |