전체 글 (27) 썸네일형 리스트형 넷플릭스 UI 클론 코딩 (with 인프런) >import 'package:bbongflix/screen/home_screen.dart';import 'package:bbongflix/screen/like_screen.dart';import 'package:bbongflix/screen/more_screen.dart';import 'package:bbongflix/screen/search_screen.dart';import 'package:bbongflix/widget/bottom_bar.dart';import 'package:firebase_core/firebase_core.dart';import 'package:flutter/material.dart';void main() async { WidgetsFlutterBinding.ensureIni.. [2024.02.07] 플러터(flutter) 조금 매운맛 강좌 08 | Future, async, await 이해하 > import 'dart:io'; void main(){ showData(); } void showData() async { startTask(); String account = await accessData(); fetchData(account); } void startTask() { String info1 = '요청수행 시작'; print(info1); } Future accessData() async { String account=''; Duration time = Duration(seconds: 3); if(time.inSeconds > 2){ //sleep(time); await Future.delayed(time, (){ account = '8,500만원'; print(account); }).. [2024.02.03] 플러터(flutter) 조금 매운맛 강좌 07 | 로그인 페이지 : 코드 리팩토링(refactoring) > import 'package:flutter/material.dart'; import 'login_app/login.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( title: 'Login app', theme: ThemeData(primarySwatch: Colors.grey), home: LogIn(), ); } } // class LogIn extends StatelessWidget{ // @override // .. [2024.01.14] Node.js #1 hello node.js 출력 > const http = require("http"); //require를 사용하여 http 모듈을 로딩하여 http 변수할당. let count = 0; //http.createServer(callback);는 서버 인스턴스를 만드는 함수 const server = http.createServer((req,res) => { log(count); //전역 변수의 로그를 간단하게 남김. res.statusCode = 200; //http 프로토콜에서 200은 성공을 나타냄. res.setHeader("Content-Type", "text/plain"); //Content-Type를 text/plain 타입으로 설정 res.write("hello\n"); //응답으로 메세지 hello를 write. set.. [2024.01.09] 플러터(flutter) 조금 매운맛 강좌 05 | 로그인과 주사위게임 > import 'package:flutter/material.dart'; import 'dice.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'Dice game', home: LogIn(), ); } } class LogIn extends StatefulWidget { const LogIn({Key? key}) : super(key: key);.. [2023.12.20] 플러터(flutter) 조금 매운맛 강좌 04 | 로그인과 주사위게임 > import 'package:flutter/material.dart'; import 'dice.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'Dice game', home: LogIn(), ); } } class LogIn extends StatefulWidget { const LogIn({Key? key}) : super(key: key);.. [2023.12.12] 플러터(flutter) 조금 매운맛 강좌 03 | 로그인과 주사위게임 > import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'Dice game', home: LogIn(), ); } } class LogIn extends StatefulWidget { const LogIn({Key? key}) : super(key: key); @override State cre.. [2023.12.08] 플러터(flutter) 조금 매운맛 강좌 02 | Sateful Widget #2 > import 'package:flutter/material.dart'; void main() => runApp(MyApp()); //stateless widget이라서 화면에 counter가 올라가지 않음 //ctrl + s 눌러 저장 시 변경된 counter 값이 화면에 반영됨. class MyApp extends StatefulWidget { @override State createState() { // TODO: implement createState return MyAppState(); } } class MyAppState extends State{ int counter = 0; @override Widget build(BuildContext context) { return MaterialAp.. 이전 1 2 3 4 다음