본문 바로가기

수니의 개발새발

검색하기
수니의 개발새발
프로필사진 개발자 수니

  • 분류 전체보기 (92)
    • iOS - Swift (47)
    • iOS (5)
    • Flutter (20)
    • Git (6)
    • Project (2)
    • Algorithm (10)
    • IT 이야기 (2)
Guestbook
250x250
반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
Tags
  • SwiftGen
  • UIAccessibility
  • basic
  • toyproject
  • COMMIT
  • swiftlint
  • reetcode
  • dart
  • keyWindow
  • ToDoRim
  • pubspec
  • protocol
  • GIT
  • xcode
  • Swift
  • pubspec.yaml
  • enumerations
  • Widget
  • designPattern
  • flutter
  • Leetcode
  • tip
  • Equatable
  • IOS
  • listview
  • Extentsion
  • it
  • OSLog
  • github
  • algorithm
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록extension (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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바