์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- TextEditingController
- scaffoldmessenger
- textField
- FloatingActionButton
- dart
- ontap
- image
- AppBar
- Webflow
- slider
- ElevatedButton
- icon
- InputDecoration
- Routing
- POP
- list
- Snackbar
- button
- PushNamed
- GestureDetector
- drawer
- Scaffold
- AlertDialog
- figma
- stateful
- navigator
- flutter
- switch
- vscode
- sizedbox
- Today
- Total
๋ชฉ๋กbutton (9)
์ฌ๋ฐ๋๊ฑฐ๐

์ด์ ์ ์ฌ๋ ธ๋ ์ฌ์ดํธ ๋ชฉ๋ก ์ค, Webflow๋ผ๋ ์ฌ์ดํธ๊ฐ ์์๋ค. ๋ฐ๋ก ๋ ธ์ฝ๋ ๊ตฌ์ถ! ์ชผ๊ผผ ๋ฐ๋นด๋ ์์ฆ~ ๋ค์ ์๋ฐ์ ์ ํ๊ธฐ ์ํด ์ด๊ฒ์ ๊ฒ ๋๋ฌ๋ณด๋ค๊ฐ, ๊ถ๊ธํ๋ Webflow๋ฅผ ๋๋ฌ๋ณด๊ธฐ๋ก ๊ฒฐ์ฌ! ์ค๋ ๋ฌด๋ฃ ํ์๊ฐ์ ํ๋ค. :) Figma์ ๋น์ทํ ๋๋! ๋ฌด๋ฃ๋ ํ 2ํ์ ๋ ์ฌ์ฉํ ์ ์๋๊ฑฐ ๊ฐ๋ค. 2023.03.02 - [๊ธฐํํ๊ธฐ] - ์์๋๋ฉด ์ข์ ์ฌ์ดํธ ๋ชฉ๋ก https://webflow.com/ Webflow: Create a custom website | No-code website builder Create professional, custom websites in a completely visual canvas with no code. Learn how to create a website by ..

์ด๋ฒ์๋ ์นด๋ ๋ฆฌ์คํธ์์ ์นด๋๋ฅผ ํด๋ฆญํ๋ฉด, ์์ธ ํ์ด์ง๋ก ์ด๋ ํ๋ ๋ถ๋ถ์ ๋ง๋ค์ด ๋ณด๋ คํ๋ค. ์ ํํ ์นด๋์ ์ด๋ฏธ์ง, ํ์ดํ, ๋ด์ฉ ์ ๋ณด๋ฅผ ๊ทธ๋๋ก ์์ธ ํ์ด์ง์ ์ถ๋ ฅํด๋ณด์ :) ๊ฐ์ฒด๊ฐ ์๋ class static ๋ณ์ 1) message.dart ํ์ผ ์์ฑํ๊ณ , ์ฃผ๊ณ ๋ฐ์ ์ ๋ณด Static ์ ์ ๐ static ์ด๋? → ์ด๋์์๋ ์ฌ์ฉํ ์ ์์! ์ธ์คํด์ค์ ๊ท์๋์ง ์๊ณ , ํด๋์ค ํต์งธ๋ก ๊ท์์ด ๋๋๊ฒ. ํจ์ ๋๋ ๋ณ์๊ฐ ํต์งธ๋ก ํด๋์ค์ ๊ท์์ด ๋๋ ๊ฒ! 2) card_list.dart ํ์ผ์์, Card > onTap์ ๋ณด๋ด์ค ์ ๋ณด Message. ์ ์ ํ ์ ๋ณด ๋ด๊ธฐ! 3) card_detail.dart ํ์ผ์์, body์ Message. ์ ๋ณด๋ก ์ถ๋ ฅํ๊ธฐ! 4) ์ ์ฅํ๊ณ , ๋ชฉ๋ก ์์ธ ํ๋ฉด ์ด๋ ํ์ธ 5..

์ค์์น๋ ์ค์์น์ ๊ฐ์ ์๊ณ ์์ ์ ์ญ ๋ณ์๊ฐ ํ์ํ๋ค. ์์ธํ ์๊ฐ๋ ์๋ ๋งํฌ ์ฐธ๊ณ :) https://api.flutter.dev/flutter/material/Switch-class.html Switch class - material library - Dart API A Material Design switch. Used to toggle the on/off state of a single setting. The switch itself does not maintain any state. Instead, when the state of the switch changes, the widget calls the onChanged callback. Most widgets that use a switch..

์ค๋์ AppBar์ IconButton์ ๋ฃ๊ณ , ํด๋ฆญ์ Drawer๋ฅผ ์ด์ด๋ณด๋ ๊ฒ์ ๋ฉ๋ชจํ๋ คํ๋ค. AppBar์ ์ฌ์ฉ๋๋ IconButton์ ์์น์ ๋ฐ๋ผ leading, actions๋ก ๋๋๋ค. ์์ธํ ๋ด์ฉ์ ์๋ ๋งํฌ ํ์ธ! :) https://api.flutter.dev/flutter/material/AppBar-class.html AppBar class - material library - Dart API A Material Design app bar. An app bar consists of a toolbar and potentially other widgets, such as a TabBar and a FlexibleSpaceBar. App bars typically expose one or..

ํ๋ฉด ํ๋จ์ ์ฑ ํ๋ก์ธ์ค์ ๋ํ ๊ฐ๋ตํ ๋ฉ์์ง๋ฅผ ์ ๊ณตํ๋ SnackBar๋ฅผ ๋ฉ๋ชจํด๋ณด๊ฒ ๋ค. ์์ธํ ๋ด์ฉ์ ์๋ ๋งํฌ์์ ํ์ธ! https://docs.flutter.dev/cookbook/design/snackbars Display a snackbar How to implement a snackbar to display messages. docs.flutter.dev https://m2.material.io/components/snackbars#anatomy Material Design Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams ..

์ ์ค์ฒ๋ฅผ ๊ฐ์งํ๋ ์์ ฏ "GestureDetector"๋ฅผ ์ฌ์ฉํ AlertDialog ์ถ๋ ฅ์ ๋ฉ๋ชจํด๋ณด๊ฒ ๋ค. ์์ธํ ๋ด์ฉ์ ์๋ ๋งํฌ์์ ํ์ธ! https://api.flutter.dev/flutter/widgets/GestureDetector-class.html GestureDetector class - widgets library - Dart API A widget that detects gestures. Attempts to recognize gestures that correspond to its non-null callbacks. If this widget has a child, it defers to that child for its sizing behavior. If it does not ha..

์ค๋์ Flutter_01~03์์ ๋ง๋ ํ๋กํ ํ์ด์ง ๋ฒํผ์ ๋งํฌ๋ฅผ ๊ฑธ์ด๋ณด๊ฒ ๋ค. ์์ ์๊ฐ์ ์๊ฒ๋ pub.dev์์ ๊ฒ์ํด๋ณด์๋ค :) Plugin for launching a URL 1) pub.dev์์ ๊ฒ์ - https://pub.dev์ ์ - url ๊ฒ์ : "url_launcher" ํด๋ฆญ โ URL๋ผ์ด์ฒ = URL์ ์์ํ๊ธฐ ์ํ Flutter ํ๋ฌ๊ทธ์ธ! 2) ๋ณต์ฌ url_launcher: ^6.1.10 3) pubspec.yaml ํ์ผ์ ๋ถ์ฌ๋ฃ๊ณ ์ ์ฅ 4) ์ด์ Dart ์ฝ๋์ url_launcher ์ฌ์ฉ ๊ฐ๋ฅ import 'package:url_launcher/url_launcher.dart'; Url, async Function 1) Url์ ๋ด์ final ๋ณ์ ์ ์ธ final Uri..

๋ค์ํ ๋ฒํผ์ ์ฌ์ฉํ ์ ์๋ค. ๊ฐ์ฅ ๊ธฐ๋ณธ์ ์ธ TextButton์ ์ ๋ ฅํ๋ฉด ๋ค์๊ณผ ๊ฐ์ด ์ถ๋ ฅ๋๋ค. ์ฝ๊ฒ ์๊ฐํ๋ฉด, onPressed๋ ๋ฒํผ ํด๋ฆญ ์ ์ถ๋ ฅ๋๋ ์ด๋ฒคํธ๊ฐ ์ ์๋๋ ๋ถ๋ถ์ด๊ณ , child๋ ๋ฒํผ๋ช ์ ๋ฃ๋๋ค๊ณ ์๊ฐํ๋ฉด ๋๋ค. #์คํ์ผ : styleFrom()์ ์ฌ์ฉํ์ฌ ์คํ์ผ ์ค์ ๊ฐ๋ฅ style: TextButton.styleFrom() #๋ณ๋ Function์ ๋ง๋ค์ด์ ๋ฒํผ ํด๋ฆญ ์ด๋ฒคํธ ๊ตฌํ ๊ฐ๋ฅ // -- Function ---- longClickAction() { String action = "long clicked"; print('text button is $action.'); } TextButton TextButton( style: TextButton.styleFrom(foregrou..

์ค๋์ ์ง๋ ์๊ฐ์ ์ด์ด์ image 1๊ฐ๋ฅผ CircleAvatar๋ก ๋ฃ๊ณ , Divider ๋ฐ Button์ ์ถ๊ฐํด๋ณด๊ฒ ๋ค. body : CircleAvatar, Divider 0) ์ง๋ ์๊ฐ์ ๋ง๋ ์ฝ๋ VSCode๋ก ์ด๊ณ ํ์ธ 1) Column์ CircleAvatar ์ถ๊ฐํ๊ธฐ - ์ด๋ฏธ์ง ์ค์ : backgroundImage: AssetImage("ํด๋๋ช /์ด๋ฏธ์ง๋ช .ํ์ฅ์") - Radius ๊ฐ ์ค์ ํ๊ธฐ const CircleAvatar( backgroundImage: AssetImage('images/ura.jpg'), radius: 70, ), 2) CircleAvatar์ Padding ์ถ๊ฐ 3) ๋ฌธ๊ตฌ ์๋์ Divider ์ถ๊ฐํ๊ณ ํ๋ฉด ํ์ธ const Divider( height: 30, colo..