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: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) { |
class HomePage extends StatefulWidget { | |
@override | |
_HomePageState createState() => _HomePageState(); | |
} | |
class _HomePageState extends State<HomePage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( |
Container( | |
decoration: BoxDecoration( | |
color: Color(0xfff5f8fd), | |
borderRadius: BorderRadius.circular(30), | |
), | |
margin: EdgeInsets.symmetric(horizontal: 24), | |
padding: EdgeInsets.symmetric(horizontal: 24), | |
child: Row( | |
children: <Widget>[ | |
Expanded( |
Container( | |
height: 80, | |
child: ListView.builder( | |
padding: EdgeInsets.symmetric(horizontal: 24), | |
itemCount: categories.length, | |
shrinkWrap: true, | |
scrollDirection: Axis.horizontal, | |
itemBuilder: (context, index) { | |
/// Create List Item tile | |
return CategoriesTile( |
class PhotosModel { | |
String url; | |
String photographer; | |
String photographerUrl; | |
int photographerId; | |
SrcModel src; | |
PhotosModel( | |
{this.url, | |
this.photographer, |