info_ui_package 1.2.2 copy "info_ui_package: ^1.2.2" to clipboard
info_ui_package: ^1.2.2 copied to clipboard

discontinued
retracted

A Flutter package for creating beautiful and customizable list UIs with headers, cards, and more.

info_ui_package #

A Flutter package that provides a set of UI components for displaying information in a consistent and beautiful way.

Features #

  • InfoList: A flexible list widget that can display any type of data with consistent styling
  • InfoCard: A card widget that wraps content with a header and body
  • InfoHeader: A header widget for InfoCard with customizable title and style
  • Support for AsyncValue data handling
  • Customizable styling and layout options

Getting started #

Add this to your package's pubspec.yaml file:

dependencies:
  info_ui_package: ^1.0.0

Usage #

Basic InfoList Usage #

InfoList(
  items: yourItems,
  buildItem: (item) => YourCustomItemWidget(item: item),
)

InfoList with AsyncValue #

InfoList.when(
  value: yourAsyncData,
  buildItem: (item) => YourCustomItemWidget(item: item),
  shrinkWrap: false,
  physics: const BouncingScrollPhysics(),
  backgroundColor: Colors.white,
  contentPadding: EdgeInsets.zero,
  itemDecoration: const BoxDecoration(
    border: Border(
      bottom: BorderSide(
        color: Colors.grey,
      ),
    ),
  ),
)

InfoList Example

InfoCard Usage #

Info(
  card: InfoCard(
    header: InfoHeader(
      title: 'Your Title',
      titleStyle: Theme.of(context).textTheme.titleLarge,
      backgroundColor: Colors.white,
    ),
    body: YourContent(),
  ),
)

Additional Information #

InfoList Parameters #

  • items: List of items to display
  • buildItem: Function to build each item widget
  • backgroundColor: Background color of the list
  • contentPadding: Padding around the list content
  • shrinkWrap: Whether the list should shrink-wrap its content
  • separatorBuilder: Custom separator builder between items
  • physics: Scroll physics for the list
  • itemPadding: Padding for each item
  • itemDecoration: Decoration for each item container
  • removeTopPadding: Whether to remove top padding

InfoCard Parameters #

  • header: InfoHeader widget for the card title
  • body: Content to display in the card body

InfoHeader Parameters #

  • title: Text to display in the header
  • titleStyle: Text style for the title
  • backgroundColor: Background color of the header

Contributing #

Contributions are welcome! Please feel free to submit a Pull Request.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

0
likes
0
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for creating beautiful and customizable list UIs with headers, cards, and more.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cached_network_image, flutter, flutter_riverpod, flutter_screenutil, google_fonts

More

Packages that depend on info_ui_package