Use dynamic and beautiful card view pagers (horizontal direction) to help you create great apps.

Overview

Use dynamic and beautiful card view pagers (horizontal direction) to help you create great apps.

Preview

Mobile

Web

Installing

  1. Add dependency to pubspec.yaml

    Get the latest version in the 'Installing' tab on pub.dartlang.org

dependencies:
    horizontal_card_pager: ^1.1.1
  1. Import the package
import 'package:horizontal_card_pager/horizontal_card_pager.dart';
import 'package:horizontal_card_pager/card_item.dart';
  1. Adding HorizontalCardPager

With optional parameters

print("selected : $page"), items: { ... }, // set ImageCardItem or IconTitleCardItem class )) ">
HorizontalCardPager(
    initialPage : 2 // default value is 2
    onPageChanged: (page) => print("page : $page"),
    onSelectedItem: (page) => print("selected : $page"),
    items: { ... },  // set ImageCardItem or IconTitleCardItem class
))
  1. Put CardItem object in items parameter in HorizontalCardPager

If the contents of the card contain only images, use the ImageCardItem class. and If the contents of the card include an icon and a title, use the IconTitleCardItem class.

Image Icon & Text
imagetype icontitletype

ImageCardItem

class ImageCarditem extends CardItem {
  final Widget image;

  ImageCarditem({this.image});
}

IconTitleCardItem

class IconTitleCardItem extends CardItem {
  final IconData iconData;
  final String text;
  final Color selectedBgColor;
  final Color noSelectedBgColor;
  final Color selectedIconTextColor;
  final Color noSelectedIconTextColor;

  IconTitleCardItem(
      {this.iconData,
      this.text,
      this.selectedIconTextColor = Colors.white,
      this.noSelectedIconTextColor = Colors.grey,
      this.selectedBgColor = Colors.blue,
      this.noSelectedBgColor = Colors.white});
}

How to use

Check out the example app in the example directory or the 'Example' tab on pub.dartlang.org for a more complete example.

Reference

This package's animation is inspired from from this Dribbble art.

TODO

  • Attach Gesture Detector
  • implement call back method
  • Enable to customize card design
    • icon & title
    • image only
  • Implements sample app
  • Publish plugin
You might also like...

This app it's a simple app to help you choose between alcool or gasoline based on the price of the gasoline and the price of the alcool.

This app it's a simple app to help you choose between alcool or gasoline based on the price of the gasoline and the price of the alcool.

This app it's a simple app to help you choose between alcool or gasoline based on the price of the gasoline and the price of the alcool. It's a simple app that uses a simple logo, two text fields and a button that calculate and show the best option.

Oct 3, 2021

Examples showing how to use Rid in order to build Dart/Flutter apps integrated with Rust.

Examples showing how to use Rid in order to build Dart/Flutter apps integrated with Rust.

Dec 24, 2022

A collection of sample apps that use Stream

A collection of sample apps that use Stream

Flutter samples Quick Links Register to get an API key for Stream Chat Flutter Chat Tutorial Chat UI Kit Flutter SDK Repo What is Stream? Stream allow

Dec 21, 2022

An app to help you quit smoking, made with flutter!

An app to help you quit smoking, made with flutter!

An app I originally made for my father to help him quit smoking. Helps you see how much money you've saved, how many cigarettes you've not smoked, how long you’ve been smoke-free, and how your health is improving. Also includes a guide that I made after a few days of research.

Jan 4, 2023

A flutter application to help you study

Mindrev [WIP] A flutter application to help you study Features Divided into classes, topics, and materials Flashcards Notes Ordered Notes Graphs Mind

May 3, 2022

A simple recipe showing application made using Flutter , using card Views MaterialPageRoute etc.

recipes A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Oct 31, 2021

Real short video app with firebase and pixels API.Where you can create a short video with pixels' stock videos and also merge your audio.

Real short video app with firebase and pixels API.Where you can create a short video with pixels' stock videos and also merge your audio.

Real short video app with firebase and pixels API.Where you can create a short video with pixels' stock videos and also merge your audio.

Dec 26, 2022

A simple Todo app designed to simply use GraphQL as backend and provide an easy to use UI/UX.

A simple Todo app designed to simply use GraphQL as backend and provide an easy to use UI/UX.

simple_todo_app A simple Todo app designed to simply use GraphQL as backend and provide an easy to use UI/UX. A breakdown of the project and explanati

Oct 9, 2022

Poi-Poi-ToDo - A Task Management App where you can create task & maintain your daily life easily

Poi-Poi-ToDo - A Task Management App where you can create task & maintain your daily life easily

"Poi Poi Todo" is a Task Management App where you can create task & maintain your daily life easily. In this app we use Path Provider, SQLite Database, DateTime Picker etc flutter pakages.

Oct 30, 2022
Comments
  • Update horizontal_card_pager.dart

    Update horizontal_card_pager.dart

    Add change size on image

    • width

    HorizontalCardPager( width: 15, onPageChanged: (page) => print("page : $page"), onSelectedItem: (page) => print("selected : $page"), items: items, )

    opened by DepriPramana 0
Owner
Jeongtae Kim
Please, Lord, help me upload one more commit.
Jeongtae Kim
Create an Invoice PDF Document completely with Flutter and learn how to generate and view this invoice in Flutter.

Create an Invoice PDF Document completely with Flutter and learn how to generate and view this invoice in Flutter.

Johannes Milke 124 Jan 4, 2023
Use of Divider in Flutter (in our developed ID Card App)

Use_Of_Divider_In_IDCard Use of Divider in Flutter. Use of Divider in Flutter (in our developed ID Card App) Getting Started This project is a startin

Avinandan Bose 1 Mar 19, 2022
A pokemon app that let's you explore a large libarary of pokemons, view their strenghts and save your favorite pokemons

A pokemon app that let's you explore a large libarary of pokemons, view their strenghts and save your favorite pokemons!. (Built using freezed and flutter_bloc)

Abdulmalik 8 Aug 19, 2022
Flutter project file sturcture that can help me to create new project easily

flutter_project_arch A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Rafat Jamader Meraz 1 Oct 9, 2022
TutorialCoachMark - Create a beautiful and easy tutorial for your application.

TutorialCoachMark Create a beautiful and easy tutorial for your application. Example 1 Example 2 Usage To use this plugin, add tutorial_coach_mark as

Rafael Almeida Barbosa 423 Dec 25, 2022
Beautiful Nike Web Design Concept With Flutter Beautiful Nike Web Design Concept With Flutter

flutter_web_nike A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Pawan Kumar 23 Jan 28, 2022
A demonstration of using Riverpod for dynamic locale switching in-app

Riverpod Localization A demonstration of using Riverpod for dynamic locale switching in-app, with persistence. How It Works Fallback Locale: Declared

Matthew Rideout 18 Dec 30, 2022
A Completed Functional Flutter App (BLoC + Json API + Unit Test + Azure Active Directory OAuth + Access Dynamic CRM Entitis)

A Completed Functional Flutter App (BLoC + Json API + Unit Test + Azure Active Directory OAuth + Access Dynamic CRM Entitis)A Completed Functional Flutter App (BLoC + Json API + Unit Test + Azure Active Directory OAuth + Access Dynamic CRM Entitis)

Ali Tazik 9 Dec 23, 2022
A fully responsive BMI calculator app made using flutter and dart with beautiful minimalistic user interface design and easy to use .

BMI_Calculator_Flutter A fully responsive BMI calculator app made using flutter and dart with beautiful minimalistic user interface design and easy to

null 1 Oct 9, 2021
Let's create a complete Flutter Quiz App UI from scratch with a beautiful design.

Flutter Tutorial - Quiz App UI Let's create a complete Flutter Quiz App UI from scratch with a beautiful design. Social Media Preview Watch Video ⚡

Johannes Milke 61 Dec 29, 2022