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

empty_widget 표지
패키지 상세v0.0.5

empty_widget

Custom_Empty 위젯은 Flutter의 사용자 정의 위젯으로, 사용자에게 특정 이벤트에 대해 알리기 위해 설계되었습니다.

30일 다운로드
537
좋아요
70
Pub 점수
65

패키지 설치

flutter pub add empty_widget

패키지 개요

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

empty_widget는 리스트의 빈 상태나 데이터 부재와 같은 특정 이벤트에 대해 사용자에게 알리기 위해 설계된 플러터 커스텀 위젯입니다. 콘텐츠가 사용할 수 없을 때 명확하게 표시함으로써 사용자 경험을 향상시키는 사용자 정의 가능한 플레이스홀더 인터페이스를 제공합니다. 간단함과 유연성을 고려하여 아이콘, 텍스트 및 버튼과 같은 다양한 시각적 구성 요소를 지원합니다. 동적 콘텐츠를 가진 앱에서 UI 피드백을 개선하는 데 이상적입니다.

사용 사례

  • 목록에서 빈 상태 표시
  • 누락된 데이터 표시
  • 사용자 피드백 향상
  • 플레이스홀더 시각 요소 맞춤 설정
  • 데이터 로딩 중 사용자 경험 개선
  • 행동 유도 버튼 제공

주요 기능

  • 사용자 정의 가능한 아이콘 및 텍스트
  • 액션 버튼을 지원합니다
  • 기존 위젯과의 간편한 통합
  • 사용자 정의 가능한 외관
  • 경량이고 효율적
  • 확장 가능한 디자인

적합한 대상

  • 간단한 빈 상태 솔루션을 찾는 개발자
  • 동적 콘텐츠 표시를 갖춘 앱
  • UI/UX 중심의 Flutter 프로젝트
  • 재사용 가능한 자리 표시자 컴포넌트를 원하는 팀
  • 최소한의 보일러플레이트가 필요한 프로젝트

고려 사항

  • 제한된 플랫폼별 최적화
  • 내장 애니메이션이 없음
  • 고급 디자인을 위해서는 수동 스타일링이 필요합니다
  • 복잡한 상호작용형 자리표시자에 적합하지 않습니다
  • 업데이트를 위해 외부 소스 코드에 의존합니다

원본 README

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

Empty Widget

Open Source Love GitHub last commit GitHub GitHub code size in bytes GitHub stars GitHub forks

pub package Likes Popularity Pub points

Hits

Custom_Empty widget is flutter custom widget which is designed to notify user about some event.

Screenshots

Screenshots Screenshots Screenshots Screenshots

Getting Started

1. Add library to your pubspec.yaml
dependencies:
  empty_widget: ^0.0.3
2. Import library in dart file

import 'package:empty_widget/empty_widget.dart';

3. Use of EmptyWidget
 EmptyWidget(
   image: null,
   packageImage: PackageImage.Image_1,
   title: 'No Notification',
   subTitle: 'No  notification available yet',
   titleTextStyle: TextStyle(
     fontSize: 22,
     color: Color(0xff9da9c7),
     fontWeight: FontWeight.w500,
   ),
   subtitleTextStyle: TextStyle(
     fontSize: 14,
     color: Color(0xffabb8d6),
   ),
 );

Example

import 'package:empty_widget/empty_widget.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
         primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Empty widget demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
 final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Container(
        alignment: Alignment.center,
        child: EmptyWidget(
          image: null,
          packageImage: PackageImage.Image_1,
          title: 'No Notification',
          subTitle: 'No  notification available yet',
          titleTextStyle: TextStyle(
            fontSize: 22,
            color: Color(0xff9da9c7),
            fontWeight: FontWeight.w500,
          ),
          subtitleTextStyle: TextStyle(
            fontSize: 14,
            color: Color(0xffabb8d6),
          ),
        ),
      ),
    );
  }
}

Parameters and Value

Parameter Type Description
title string Set text for title
subTitle string Set text for subtitle
image string Display images from project assets
packageImage PackageImage Display image from package assets
titleTextStyle TextStyle Set text style for title
subtitleTextStyle TextStyle Set text style for subtitle
hideBackgroundAnimation bool Hides the background circular ball animation

Download Example App

Pull Requests

I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request.

Created & Maintained By

Sonu Sharma (Twitter) (Youtube) (Insta) Twitter Follow

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee:

Visitors Count

Loading

카테고리

소스 저장소

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

아직 데이터가 없습니다.