패키지, 저장소 및 앱 카테고리 검색

패키지 상세v7.0.7296

material_design_icons_flutter

커뮤니티가 플러터를 위해 설계한 매테리얼 디자인 아이콘

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
6.5만
좋아요
693
Pub 점수
50

패키지 설치

flutter pub add material_design_icons_flutter

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

커뮤니티가 개발한 Material Design 아이콘을 제공하는 플러터 패키지입니다. 구글의 Material Design 가이드라인에 부합하는 포괄적인 아이콘 세트를 제공하여 다양한 플랫폼 간 일관성과 시각적 매력을 보장합니다. 성능 최적화되어 있으며, 안드로이드, iOS, 웹, 맥OS, 윈도우, 리눅스 등 주요 플러터 플랫폼을 모두 지원합니다. 개발자는 간단한 위젯 문법을 사용해 UI에 아이콘을 쉽게 통합하고 커스터마이징할 수 있습니다.

사용 사례

  • 모바일 및 웹 앱에 Material Design 준수 아이콘 통합하기
  • 일관되고 확장 가능한 벡터 아이콘으로 UI 향상
  • 통합 아이콘 그래피를 사용하여 크로스 플랫폼 애플리케이션 빌드하기
  • Flutter 위젯에서 아이콘 색상 및 크기 맞춤 설정
  • 버튼, 네비게이션 바 및 앱 도구 모음에서 아이콘 사용

주요 기능

  • 매우 풍부한 Material Design 아이콘 라이브러리
  • 모든 주요 플러터 플랫폼 지원
  • pub.dev를 통한 간편한 통합
  • 고해상도의 확장 가능한 벡터 아이콘
  • 내장 아이콘 테마 및 사용자 정의 옵션

적합한 대상

  • Material Design 기반 앱을 개발하는 Flutter 개발자
  • 다양한 플랫폼 간에 일관된 아이콘 세트가 필요한 팀
  • 경량이고 성능이 뛰어난 아이콘 솔루션을 필요로 하는 프로젝트
  • UI/UX 일관성에 집중하는 개발자
  • 여러 운영 체제를 대상으로 하는 앱

고려 사항

  • 새로운 아이콘 추가를 위해 수동 업데이트가 필요합니다
  • 커뮤니티 유지 관리 아이콘 세트로 제한됨
  • 사용자 정의 아이콘 테마를 사용하려면 추가 구성이 필요할 수 있습니다
  • 구글 공식 유지보수되지 않음
  • 업데이트를 위해 외부 GitHub 저장소에 의존합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

material_design_icons_flutter

The Material Design Icons Icon pack available as set of Flutter Icons.

Based on Material Design Icons 7.4.47. See a web demo build with this package.

👍 Like us on pub.dev!

Installation

In the dependencies: section of your pubspec.yaml, add the following line:

  material_design_icons_flutter: 7.0.7447

WARNING: MDI's version is based on their icons quantity, which does not strictly respect semver guide. They do try their best to keep icons in same name between minor releases but name changing may still appear. To not break your application, using a fix version in your pubspec.yaml is highly recommended.

Usage

import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return new IconButton(
      // Use the MdiIcons class for the IconData
      icon: new Icon(MdiIcons.sword),
      onPressed: () { print('Using the sword'); }
     );
  }
}

Or, if you want to access the icon by a string name, you can use fromString method to create one.

import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return new IconButton(
      // Use the string name to access icons.
      icon: new Icon(MdiIcons.fromString('sword')),
      onPressed: () { print('Using the sword'); }
     );
  }
}

Note: This is not recomended because to make fromString work we need a map for all icon names. Using this method will not get the benefits of tree-shaking.

On flutter 1.22 and above, using fromString method will also cause a compile error This application cannot tree shake icons fonts, which can be bypass by building with --no-tree-shake-icons.

Name Conversion

Some icons' names are reserved keywords in Dart (and most other languages), so they have been changed.

  • null -> nullIcon
  • switch -> switchIcon
  • sync -> syncIcon
  • factory -> factoryIcon

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트