A dice application using flutter

Overview

Flutter-App-login_dice

๐Ÿ“ฑ ์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค๋ฅผ ์ด์šฉํ•œ ํ”Œ๋Ÿฌํ„ฐ ์ฃผ์‚ฌ์œ„ ์–ดํ”Œ ์ œ์ž‘

๐Ÿก ๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ

  • controller๋ฅผ ์ด์šฉํ•˜์—ฌ TextField์—์„œ ์ž…๋ ฅ๋ฐ›์€ ์ •๋ณด๋ฅผ ๋ฐ›์•„์˜ค๊ธฐ
  • FocusScope.of(context).unfocus()๋ฅผ ์ด์šฉํ•ด ํ…์ŠคํŠธ ํ•„๋“œ ์™ธ๋ถ€ ์˜์—ญ์„ ํ„ฐ์น˜ํ•  ์‹œ ํ‚ค๋ณด๋“œ๊ฐ€ ์‚ฌ๋ผ์ง€๋„๋ก ์ฒ˜๋ฆฌ
  • if๋ฌธ์„ ์ด์šฉํ•ด ์‚ฌ์šฉ์ž๊ฐ€ ํ…์ŠคํŠธ ํ•„๋“œ์— id: dice / pw: 1234 ์ด์™ธ์˜ ๊ฐ’์„ ์ž…๋ ฅํ•  ๊ฒฝ์šฐ ๋กœ๊ทธ์ธ ํ•  ์ˆ˜ ์—†๋„๋ก ์ฒ˜๋ฆฌ
  • ์‚ฌ์šฉ์ž๊ฐ€ ์ง€์ •๋œ id, pw๊ฐ’์„ ์ž…๋ ฅํ•œ ๊ฒฝ์šฐ dice ํŽ˜์ด์ง€๋กœ ๋„˜์–ด๊ฐ€๋„๋ก Navigator๋ฅผ ์ด์šฉํ•œ ํŽ˜์ด์ง• ์ฒ˜๋ฆฌ
Navigator.push(context, 
    MaterialPageRoute(builder: (BuildContext context) => Dice()));

Animation3



๐ŸŽฒ ์ฃผ์‚ฌ์œ„ ๊ตด๋ฆฌ๊ธฐ ๊ธฐ๋Šฅ

  • Column๊ณผ Row ์œ„์ ฏ์„ ์ด์šฉํ•˜์—ฌ ์ฃผ์‚ฌ์œ„ ์ด๋ฏธ์ง€ ๋ฐฐ์น˜
  • ์™ผ์ชฝ ์ฃผ์‚ฌ์œ„์™€ ์˜ค๋ฅธ์ชฝ ์ฃผ์‚ฌ์œ„์— ๋žœ๋ค๋ฒˆํ˜ธ๋ฅผ ๋ถ€์—ฌํ•˜์—ฌ ๋žœ๋ค์œผ๋กœ ์ฃผ์‚ฌ์œ„ ์ด๋ฏธ์ง€๊ฐ€ ๋ฐ”๋€Œ๊ฒŒ ์ฒ˜๋ฆฌ
setState(() {
    leftDice = Random().nextInt(6) + 1;
    rightDice = Random().nextInt(6) + 1;
});
Image.asset('image/dice$leftDice.png')
Image.asset('image/dice$rightDice.png')
  • ๋ถ€์—ฌ๋œ ๋žœ๋ค๋ฒˆํ˜ธ๋ฅผ ํ† ์ŠคํŠธ ๋ฉ”์‹œ์ง€๋กœ ์ถœ๋ ฅ์ฒ˜๋ฆฌ

Animation3



โ˜บ ์ƒˆ๋กœ ํ•™์Šตํ•œ ๋‚ด์šฉ

  • TextField์˜ ๋‚ด์šฉ์„ Controller๋กœ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ตํ˜”๋‹ค.
  • Column๊ณผ Row ์œ„์ ฏ์—์„œ์˜ mainAxisAlignment:MainAxisAlignment.center ์‚ฌ์šฉ๋ฒ•์„ ๋‹ค์‹œ ํ•œ ๋ฒˆ ์ฒด๋“ํ–ˆ๋‹ค.
  • ์ด๋ฏธ์ง€ ํŒŒ์ผ๋ช…์„ ๋ณ€์ˆ˜์ฒ˜๋ฆฌํ•˜์—ฌ ์ƒํƒœ๊ฐ’์„ ๋ณ€ํ™”์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ๊ฒŒ ๋˜์—ˆ๋‹ค. ($๊ธฐํ˜ธ ์‚ฌ์šฉ๋ฒ•)
  • pubspec.yamlํŒŒ์ผ์— fluttertoast๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋“ฑ๋กํ•˜๋ฉด์„œ ๋ฐœ์ƒํ•œ ์˜ค๋ฅ˜๋ฅผ ๊ณต์‹๋ฌธ์„œ๋ฅผ ์ฐพ์•„๋ณด๋ฉฐ ํ•ด๊ฒฐํ•˜์˜€๋‹ค.
  • ์ฐธ๊ณ ํ•œ ๊ฐ•์ขŒ์˜ flutter ์œ„์ ฏ ์ค‘ ์ง€์›๋˜์ง€ ์•Š๋Š” ์œ„์ ฏ์€ ์—ญ์‹œ ๊ณต์‹๋ฌธ์„œ๋ฅผ ์ฐพ์•„๊ฐ€๋ฉฐ ์ˆ˜์ •ํ•˜์—ฌ ์ฝ”๋“œ๋ฅผ ์‹คํ–‰์‹œ์ผฐ๋‹ค.
  • ์ถ”๊ฐ€๋กœ git ์‚ฌ์šฉ๋ฒ•, mark down ์‚ฌ์šฉ๋ฒ•๋„ ์ตํ˜€๊ฐ€๋Š” ์ค‘



์ฝ”๋“œ ์›๋ฌธ ์ถœ์ฒ˜

<์ฝ”๋”ฉ์…ฐํ”„> ์ฃผ์‚ฌ์œ„ ๋งŒ๋“ค๊ธฐ ๊ฐ•์ขŒ
https://www.youtube.com/playlist?list=PLQt_pzi-LLfoOpp3b-pnnLXgYpiFEftLB

You might also like...

Flutter RSS feed parsing - A demo application of flutter which parse RSS XML contents to the flutter application

Flutter RSS feed parsing - A demo application of flutter which parse RSS XML contents to the flutter application

Flutter RSS feed parsing demo This is demo application of flutter which shows ho

Nov 15, 2022

A fully functional Movies Application built with Flutter. The application built with null safety and clean architecture, also uses OMDB API for fetching movies in the search item

A fully functional Movies Application built with Flutter. The application built with null safety and clean architecture, also uses OMDB API for fetching movies in the search item

Cinema DB Project Details This project uses null safety feature Project uses clean code architecture (Uncle Bob's Architecture) Project can run on bot

Oct 1, 2022

Valorant Guide app: a small demo application to demonstrate Flutter application tech-stacks

Valorant Guide app: a small demo application to demonstrate Flutter application tech-stacks

Valorant Guide Design Design by: Malik Abimanyu App Valorant Guide app is a smal

Sep 30, 2022

Ibolo-Microfinance-Bank-Mobile-Application - Mobile Banking Application With Flutter

Ibolo-Microfinance-Bank-Mobile-Application - Mobile Banking Application With Flutter

ibolo mfb A new Flutter project. Getting Started This project is a starting poin

Dec 20, 2022

eDoc mobile application is designed as an example of a medical application that allows doctors to manage appointments

eDoc mobile application is designed as an example of a medical application that allows doctors to manage appointments

eDoc Mobile App (Demo Version) โœจ About The eDoc mobile application is designed a

Nov 14, 2022

Flutter Github Following Application, Using Flutter Provider and Flutter HTTP to get data from Github API.

Flutter Github Following Application, Using Flutter Provider and Flutter HTTP to get data from Github API.

Flutter Github Following Application Watch it on Youtube Previous Designs Checkout my Youtube channel Installation Please remember, after cloning this

Dec 23, 2022

Sticker chat is a messaging application built using Flutter, Stream, and Rive

Sticker chat is a messaging application built using Flutter, Stream, and Rive

Sticker Chat ๐Ÿ’ฌ Sticker chat is a messaging application built using Flutter, Stream, and Rive. It allows users to send and receive messages in real-ti

Nov 23, 2022

Project demonstrates building a simple chat application using Flutter framework and Firebase cloud

Project demonstrates building a simple chat application using Flutter framework and Firebase cloud

Flutter Chat on Firebase Project demonstrates building a simple chat application using Flutter framework and Firebase cloud. App does not poll for new

Feb 2, 2022

A mobile application that allows you to search and fetch recipes using Flutter, TheMealDB and Domain Driven Design

recipe_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

Dec 4, 2021
Owner
null
A flutter Application where you can roll die and land on a number on the dice.

dice_roller A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Shametha K G 9 Oct 17, 2022
A small transitioning dynamic app showing Dice changing Behavior

Dice_App A new Flutter project.This is a small transitioning dynamic app showing Dice changing Behavior. Getting Started This project is a starting po

Avinandan Bose 1 Mar 20, 2022
A Demo application๐Ÿ“ฑ which stores User feedback from ๐Ÿ’™Flutter application into Google Sheets๐Ÿ—Ž using Google AppScript.

?? Flutter ?? to Google Sheets ?? A Demo application which stores User feedback from Flutter application into Google Sheets using Google AppScript. Yo

Shreyas Patil 289 Dec 28, 2022
This application was created using the Dart language and it is an application that contains a set of different questions and at the end shows you the number of correct answers you have answered , made by flutter

exams_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if thi

null 0 Dec 28, 2021
Create different mobile applications such as a social networking application and an online store, as well as a news application using Flutter

Develop-Different-Mobile-Applications Create Different Mobile Applications such as a social networking application and an online store, as well as a n

Ebrahim Mohamed 2 Jul 1, 2022
This is an auction application just like eBay. Using firebase as the backend for signup & sign-in functionality. In addition to that, it's a two pages application with user bid in input and count down view.

Nilam This is an auction application just like eBay. Using firebase as the backend for signup & sign-in functionality. In addition to that, it's a two

Md. Siam 5 Nov 9, 2022
A simple application connected with API (The Movie Database), related to movies. Application created using BLoC pattern and RxDart

MovieApp I will not hide that this is the most difficult application I have done so far (and I am still working on new features). It looks like this (

Adam Dybcio 9 Oct 28, 2022
A simple flutter application using #clean_architecture to generate random quotes using from #api

flutter_random_quotes_app_wth_clean_architecture A new Flutter project. Getting Started Project Structure โ”œโ”€โ”€ assets | โ”œโ”€โ”€ images | โ”œโ”€โ”€ 1x

Hossam Mohammad 2 Oct 4, 2022