분류, 패키지 및 저장소 검색

flutter_expandable_table 표지
패키지 상세v2.3.0

flutter_expandable_table

헤더와 첫 번째 열이 고정된 확장 가능한 테이블을 만들기 위한 Flutter 위젯입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
2.3천
좋아요
178
Pub 점수
160

패키지 설치

flutter pub add flutter_expandable_table

패키지 개요

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

고정된 헤더와 첫 번째 열을 갖는 테이블을 생성하도록 설계된 플러터 위젯으로, 수직 및 수평 스크롤을 원활하게 지원합니다. 상세한 데이터를 확인하기 위해 확장 가능한 행을 지원하면서도 다양한 플랫폼에서 레이아웃의 안정성을 유지합니다. 구조화된 데이터를 반응형이고 사용자 친화적인 방식으로 표시하는 데 이상적입니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux와 호환되어 크로스플랫폼 애플리케이션에 적합합니다.

사용 사례

  • 고정 헤더를 사용하여 대규모 데이터셋 표시
  • 확장 가능한 세부 정보를 가진 상호작용식 테이블 만들기
  • 구조화된 데이터를 사용하여 관리 대시보드 구축하기
  • 계층적 또는 중첩된 정보 표시
  • 다양한 플랫폼에서 반응형 데이터 그리드 구현하기

주요 기능

  • 고정 헤더 및 첫 번째 열
  • 확장 가능한 테이블 행
  • 크로스 플랫폼 호환성
  • 스무스 스크롤 지원
  • 사용자 정의 스타일 옵션
  • 반응형 레이아웃 디자인

적합한 대상

  • 데이터 집약형 애플리케이션
  • 관리 패널 및 대시보드
  • 보고 도구
  • 구조화된 데이터 표시가 필요한 모바일 및 웹 앱
  • 재사용 가능한 테이블 컴포넌트가 필요한 개발자

고려 사항

  • 복잡한 레이아웃을 위해 추가 스타일링이 필요할 수 있습니다
  • 매우 큰 데이터 세트와의 성능 영향
  • 제한된 내장 페이지네이션 또는 필터링
  • 중간 규모의 데이터 세트에 가장 적합
  • 확장 가능한 행의 상태 관리에 주의 깊게 대응해야 합니다

원본 README

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

flutter_expandable_table

Expandable Table

Pub Package Pub Points Pub Likes

Package Issue Package License

ExpandableTable is a widget for Flutter that create a Table with header and first column fixed. You can create a nested Rows/Columns grouped in expandable Row/Column

Image
ExpandableTable

Features

  • Header and first column fixed
  • Supports vertical and horizontal scroll
  • Customizable animation Duration and Curve
  • Specific height definition for each single row
  • Specific width definition for each single column
  • Access to cell address when building cell content
  • Access to the parent rows and columns of the cell while building the contents of a cell

 

Usage

Make sure to check out the examples on GitHub.

Installation

Add the following line to pubspec.yaml:

dependencies:
  flutter_expandable_table: <last-release>
Basic setup

Complete example available here.

     return ExpandableTable(
      firstHeaderCell: ExpandableTableCell(
        child: Text('Simple\nTable'),
      ),
      headers: headers,
      rows: rows,
    );
Use with the controller

You can create an external controller to be able to dynamically manage the table, for example to add or remove rows within it.

Here is an example:

    //... Inside Widget State
    late ExpandableTableController controller;
    //....
    @override
    void initState() {
      controller = ExpandableTableController(
        firstHeaderCell: ExpandableTableCell(child: Container()),
        headers: [],
        rows: [],
        headerHeight: 263,
        defaultsColumnWidth: 200,
        firstColumnWidth: 300,
        scrollShadowColor: AppColors.black,
      );
      super.initState();
    }
    void _onEvent(){    
      controller.rows.add(...your code...);
    }
    @override
    Widget build(BuildContext context) {
      return ExpandableTable(
        controller: controller,
      );
    }
//....
ExpandableTable Properties
  • firstHeaderCell: Is the top left cell, i.e. the first header cell.
  • headers: contains the list of all column headers, each one of these can contain a list of further headers, this allows you to create nested and expandable columns.
  • rows: contains the list of all the rows of the table, each of these can contain a list of further rows, this allows you to create nested and expandable rows.
  • headerHeight: is the height of each column header, i.e. the first row.
  • firstColumnWidth: determines first Column width size.
  • defaultsColumnWidth: defines the default width of all columns, it is possible to redefine it for each individual column.
  • defaultsRowHeight: defines the default height of all rows, it is possible to redefine it for every single row.
  • duration: determines duration rendered animation of Rows/Columns expansion.
  • curve: determines rendered curve animation of Rows/Columns expansion.
  • scrollShadowDuration: determines duration rendered animation of shadows.
  • scrollShadowFadeInCurve: determines rendered curve animation of shadows appearance.
  • scrollShadowFadeOutCurve: determines rendered curve animation of shadows disappearance.
  • scrollShadowColor: determines rendered color of shadows.
  • scrollShadowSize: determines size of shadows.
  • visibleScrollbar: determines visibility of horizontal and vertical scrollbars.
  • trackVisibilityScrollbar: indicates that the scrollbar track should be visible.
  • thumbVisibilityScrollbar: indicates that the scrollbar thumb should be visible, even when a scroll is not underway.
  • expanded: indicates that the table expands, so it fills the available space along the horizontal and vertical axes.

 

📚 My open source projects

Flutter
Package Verison Score Likes Test Coverage
Pub Package Pub Points Pub Likes
Pub Package Pub Points Pub Likes
Pub Package Pub Points Pub Likes
Pub Package Pub Points Pub Likes
Dart
Package Verison Score Likes Test Coverage
Pub Package Pub Points Pub Likes Test CI codecov
Pub Package Pub Points Pub Likes Test CI codecov

카테고리

의존성

의존성 목록 3 개

소스 저장소

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

아직 데이터가 없습니다.