搜索插件、代码仓与 APP 分类

插件详情v1.2.8

grafpix

大量图标和小工具,可直接用于Flutter项目。

近 30 天下载
33
喜欢数
57
Pub 分数
35

安装插件

flutter pub add grafpix

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Grafpix 是一个全面的 Flutter 小部件库和 UI 框架,提供大量可直接使用的图标和交互式组件。专为简化 UI 开发而设计,它为开发者提供了丰富的预构建组件,以增强视觉吸引力和功能。该包可通过 pub 轻松集成到 Flutter 项目中,实现快速原型设计和跨应用的一致性设计。凭借对美学和可用性的关注,Grafpix 支持高效创建现代且引人入胜的用户界面。

适合场景

  • 快速UI原型设计
  • 增强应用视觉设计
  • 构建交互式仪表板
  • 创建自定义图标集
  • 优化小部件重用

主要特点

  • 丰富的图标库
  • 预构建的交互式小工具
  • 与 Flutter 的轻松集成
  • 一致的设计系统
  • 模块化组件结构

适合对象

  • Flutter 中的 UI 设计师
  • 寻求可重用组件的开发人员
  • 需要丰富视觉元素的项目
  • 快节奏的应用开发团队
  • 注重设计的移动应用

使用建议

  • 有限的平台特定自定义
  • 未提供官方文档
  • 依赖外部 GitHub 仓库
  • 使用大型图标集时可能会增加打包大小
  • 需要从源代码手动更新

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Grafpix

A growing Flutter Package consist of a huge collection of rectified icons and essential utilities that grant you outstanding user experience in no time.

Features

  • Huge collection of icons from multiple authors.
  • Impressive growing utilities to improve your design patterns.
  • WYSIWYG preview module for Flutter in Visual Studio Code to speed up development by providing you with Visual Aid.
  • Ease to deploy.
Newly Added > PixMedal

A Unique Medal Buttons with engraved icons of your choise, the varaieties are Gold, Silver & Bronze Medals.

Showcase1

PixButtons

A Stunning Glass-Like Buttons with fully customized properties.

Release

Showcase

A huge iconset of +2500 Icons

Grafpix Release 1.2.4

PixLoaders

used to simulate Future progress indicators.

LoaderType Output
Flashing Flashing
Spinner Spinner
Rocks Rocks
Installation

In your pubspec.yaml under dependencies add the following line:

dependencies:
  grafpix: ^1.2.6

From your Terminal, run the following code:

  flutter pub get
Example

PixIcon and PixLoader example

import 'package:flutter/material.dart';
import 'package:grafpix/icons.dart';
import 'package:grafpix/pixloaders/pix_loader.dart';
import 'package:grafpix/pixbuttons/radial.dart';
import 'package:grafpix/pixbuttons/medal.dart';

void main() =>
    runApp(MaterialApp(debugShowCheckedModeBanner: false, home: Example()));

class Example extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey[900],
      body: FutureBuilder(
          future: waitForFuture(),
          builder: (context, snapshot) {
            if (snapshot.hasData)
              // display PixButton with PixIcon when Future ends.
              return Container(
                  alignment: Alignment.center,
                  child: Column(mainAxisSize: MainAxisSize.min, children: [
                    PixButton(
                        radius: 70.0,
                        icon: PixIcon.pix_android, //PixIcon
                        iconSize: 50.0,
                        iconColor: Colors.white,
                        backgroundColor: Colors.blue,
                        shutter: 0.6,
                        twinkles: true,
                        onPress: () {
                          print('PixButton Pressed');
                        }),
                    SizedBox(height: 20.0),
                    PixMedal(
                      icon: PixIcon.shopware,
                      medalType: MedalType.Gold,
                      radius: 70.0,
                      iconSize: 60.0,
                    )
                  ]));
            else
              // display PixLoader while Future in progress.
              return PixLoader(
                  loaderType: LoaderType.Flashing, faceColor: Colors.white70);
          }),
    );
  }
}

// Simulates a future call with 5 seconds delay.
Future waitForFuture() async {
  await Future.delayed(Duration(seconds: 5));
  return true;
}

GRAFPIX

Author

Ahmed Mustafa < ahmed.dev2020@gmail.com > if you have suggestions, please feel free to contact me any time. your feedback is highly appreciated.

License

MIT

所属分类

源码仓库

使用此插件的项目

暂无相关数据。