GithubHelp home page GithubHelp logo

swipe_button_flutter's Introduction

People ๐Ÿ‘‹

Hmm .. Well there you go :

  • ๐Ÿ”ญ Iโ€™m currently working on Flutter
  • ๐ŸŒฑ Iโ€™m currently learning Flutter animations
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on LinkedIn
  • ๐Ÿค” Iโ€™m looking for help with Evrything related to IoT
  • ๐Ÿ’ฌ Ask me about Coding , Footable and Mybe Politics
  • ๐Ÿ“ซ How to reach me: https://www.linkedin.com/in/savadmv333/
  • ๐Ÿ˜„ Pronouns: ...
  • โšก Fun fact: Oh It's not funny anymore

FLUTTER

First Series

List View Sample

My Posts

swipe_button_flutter's People

Contributors

savadmv avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

swipe_button_flutter's Issues

Swipe

How to increase the width of Swipe button which has to be swiped?

Color of non-button text

I am trying to change the color of the text that is not the button and I am not finding the way.
Is there any way to do it, or what is the dart color theme that text uses?.
I have created a pull request #6
thanks.

Sound null safety

Flutter 2.0 requires sound null safety. The package cannot run cause don't support null safety. Grettings

Hey am not sure if this is an issue or not can you check it out

       Padding(
                  padding:   EdgeInsets.symmetric(horizontal: 20, vertical: 18),
                  child: Container(
                    height: 50,
                    child: SwipingButton(
                              // backgroundColor: Colors.white,
                              text: btnTitle,
                              backgroundColor: btnColor,
                              onSwipeCallback: () async {
                                if (status == "accepted") {
                              status = "arrived";
                              String rideRequestId =
                                  widget.rideDetails.ride_request_id;
                              newRequestsRef
                                  .child(rideRequestId)
                                  .child("status")
                                  .set(status);

                              setState(() {
                                btnTitle = "Start trip";
                                btnColor = Colors.green;
                              });
                              showDialog(
                                context: context,
                                barrierDismissible: false,
                                builder: (BuildContext context) =>
                                    ProgressDialogue(message: "Please wait..."),
                              );
                              await getPlaceDirection(widget.rideDetails.pickup,
                                  widget.rideDetails.dropoff);
                              Navigator.pop(context);
                            } else if (status == "arrived") {
                              status = "onride";
                              String rideRequestId =
                                  widget.rideDetails.ride_request_id;
                              newRequestsRef
                                  .child(rideRequestId)
                                  .child("status")
                                  .set(status);

                              setState(() {
                                btnTitle = "End trip";
                                btnColor = Colors.red;
                              });
                              initTimer();
                            } else if (status == "onride") {
                              endTheTrip();
                            }
                              }
                            ),
                  ),
                ),

If you read my code on each swipe I wanted to change the color and text of the button based on status which found online and when I do that nothing works still it sows me the color and the text that was earlier initialized with.
not sure but i think it not rebuilding,
but if I use a button it works fine
please bro enlighten me

No way to reset

After onSwipeCallback received once, I couldnโ€™t find way to reset it's state.
Is there any way todo this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.