์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- CollectionView
- reactorkit
- realm
- Xcode
- Lv2
- rxcocoa
- BFS
- Flutter
- ํ๋ก๊ทธ๋๋จธ์ค
- designpattern
- swift
- node.js
- ๋ฐฑ์ค
- arkit
- tableView
- RxSwift
- XCTest
- visionOS
- TCA
- ํจ์คํธ์บ ํผ์ค
- ios
- combine
- Kuring
- UIKit
- Swfit
- SwiftUI
- raywenderlich
- MVVM
- SnapKit
- BOJ
- Today
- Total
๋ชฉ๋กtoast (2)
lgvv98
Toast, popup โ ์ด๋ฒ์๋ ์คํ์์ค๋ฅผ ํ์ฉํด์ toast์ popup์ ํ๋ ์์ ์ ์งํํด๋ณด์. ์ด์ ์ ํ๋ฌํฐ๋ ์๋๋ก์ด๋ ๊ฐ๋ฐํ ๋, ์ฃผ๋ก ์ฌ์ฉํ๋ UI์ธ๋ฐ, iOS์๋ ๋น์ทํ๊ฒ ๊ตฌํํ ์ ์๋ค๊ณ ํด์ ๊ณต๋ถํด ๋ณด์๋ค. โ ์คํ์์ค https://github.com/exyte/PopupView GitHub - exyte/PopupView: Toasts and popups library written with SwiftUI Toasts and popups library written with SwiftUI. Contribute to exyte/PopupView development by creating an account on GitHub. github.com ์คํ์์ค์์ SPM์ ์ง์ํ๋ค๊ณ ํ๋ค...
โ ์ด๋ฒ ์๊ฐ์๋ ์ค๋ต๋ฐ์ ํ ์คํธ ๋ฉ์์ง์ ๋ํด์ ์์๋ณด์. ์ค๋ต๋ฐ์ ๊ฒฝ์ฐ์๋ ํจ์น๊ฐ์์์ ๋ณด์๋ค. ๊ทธ๋์ ScaffoldMessenger๋ฅผ ์ด์ฉํด์ ์ค์ค๋ก ๊ฐ์์ ์ค๋ฅ๋ฅผ ์์ ํ ์ ์์์ด ๊ฐ์์์๋ 2๊ฐ๋ก ๋๋ ์ ๊ฐ์๋ฅผ ์งํํ๋๋ฐ ScaffoldMessenger์ Toast๋ฉ์์ง๋ก ๋๋ ์ด์ ๋ฐํํ๋ค. ํนํ, ํ ์คํธ ๋ฉ์์ง ์ชฝ์์ error๊ฐ ์์์ด์ error ํด๊ฒฐํ๋ ๊ฒ๊น์ง ์ ์ด๋์์ผ๋ ๊ผญ ๋ณด๊ธฐ โ ScaffoldMessenger ์ฌ์ฉํ๊ธฐ import 'package:flutter/material.dart'; // ๋ฐ์คํฌํ, ์ฑ ๋ฑ์ ๊ณ ๋ฃจ UI๋ฅผ ์ ์ฉํ ์ ์๊ฒ ํด์ฃผ๋ ๊ตฌ๊ธ์ด ์ ๊ณตํด์ฃผ๋ ํจํค void main() => runApp(MyApp()); class MyApp extends Stateless..