250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- it
- swiftlint
- xcode
- pubspec
- Equatable
- COMMIT
- designPattern
- UIAccessibility
- reetcode
- GIT
- algorithm
- toyproject
- Leetcode
- Extentsion
- IOS
- SwiftGen
- github
- basic
- pubspec.yaml
- ToDoRim
- Widget
- enumerations
- Swift
- OSLog
- tip
- flutter
- keyWindow
- protocol
- listview
- dart
Archives
- Today
- Total
목록COLOR (1)
개발자 수니
[Flutter/Dart] Hex값을 Color로 바꾸는 Extension Class
Color Util 만들다가 피그마에서 바로 Color값 복붙해서 사용하는데 계속 16진수로 바꿔 사용하기 번거로워 HexColor Extension 클래스를 만들어버렸습니다. :) 📌 이번 글은 Dart에서 Hex값으로 색상 설정 HexColor Extension Class 정의 입니다. Flutter에서 Hex값으로 색상을 설정하는 방법 Color mainColor = const Color(0xffff6B6B); HexColor Extension 클래스 import 'package:flutter/material.dart'; extension HexColor on Color { static Color fromHex(String hexString) { Color color; try { String col..
Flutter
2022. 4. 13. 18:08