Skip to content

A simple Flutter Package to Mimic iMessage Image Picker for Flutter

License

Notifications You must be signed in to change notification settings

retroportalstudio/swipe_deck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swipe Deck

A simple Flutter Package to Mimic iMessage Image Picker for Flutter

Current Features

  • Add List of Widgets to present them in a Swipable Deck
  • Basic Widget Customizations

Demo

Usage

To Use, simply Wrap the Widget you want to add Focused Menu to, with FocusedMenuHolder:

      body: Container(
            child: SwipeDeck(
              startIndex: 3,
              emptyIndicator: Container(
                child: Center(
                  child: Text("Nothing Here"),
                ),
              ),
              cardSpreadInDegrees: 5, // Change the Spread of Background Cards
              onSwipeLeft: (){
                print("USER SWIPED LEFT -> GOING TO NEXT WIDGET");
              },
              onSwipeRight: (){
                print("USER SWIPED RIGHT -> GOING TO PREVIOUS WIDGET");
              },
              onChange: (index){
                print(IMAGES[index]);
              },
              widgets: IMAGES
                  .map((e) => GestureDetector(
                        onTap: () {
                          print(e);
                        },
                        child: ClipRRect(
                            borderRadius: borderRadius,
                            child: Image.asset(
                              "assets/images/$e.jpg",
                              fit: BoxFit.cover,
                            )),
                      ))
                  .toList(),
            ),
      ),

Social Handles 🎯

Twitter Instagram Youtube LinkedIn

Found this useful? 💙👨‍💻

"Buy Me A Coffee"

Roadmap

Plans to add more customizations.

License

MIT

About

A simple Flutter Package to Mimic iMessage Image Picker for Flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages