All Projects → mohak1283 → CustomSwitch

mohak1283 / CustomSwitch

Licence: other
Custom Switch package created in Flutter

Programming Languages

dart
5743 projects
objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to CustomSwitch

progressive image
A flutter widget that progressively loads large images using Low-Quality Image Placeholders.
Stars: ✭ 28 (-50%)
Mutual labels:  flutter-examples, flutter-widget, flutter-package
flutteranimations
Flutter login and signup screen with animations.
Stars: ✭ 34 (-39.29%)
Mutual labels:  animations, flutter-examples, flutter-widget
Flutter-Apps
🌀 This is mainly focus on a complete application for production
Stars: ✭ 18 (-67.86%)
Mutual labels:  flutter-examples, flutter-widget, flutter-package
FlutterLoadingGIFs
Loading indicator GIFs. Material and Cupertino (Android and iOS) loading indicators in assorted sizes. Use as placeholders for loading remote image assets. Demo: https://gallery.codelessly.com/flutterwebsites/loadinggifs/
Stars: ✭ 28 (-50%)
Mutual labels:  animations, flutter-widget, flutter-package
swipedetector
A Flutter package to detect up, down, left, right swipes.
Stars: ✭ 34 (-39.29%)
Mutual labels:  flutter-examples, flutter-widget, flutter-package
flutter dribble login challenge
A flutter animation UI challenge.
Stars: ✭ 51 (-8.93%)
Mutual labels:  animations, flutter-examples, flutter-widget
flutter-UI
将Flutter各种Widget各种API📘都实现一次。喜欢请Star。
Stars: ✭ 67 (+19.64%)
Mutual labels:  flutter-examples, flutter-widget, flutter-package
flutter-app
Full Feature Todos Flutter Mobile app with fireStore integration.
Stars: ✭ 138 (+146.43%)
Mutual labels:  flutter-examples, flutter-widget, flutter-package
flip view
A Flutter app with flip animation to view profiles of friends. 🌟
Stars: ✭ 69 (+23.21%)
Mutual labels:  animations, flutter-examples, flutter-widget
flutter sliding tutorial
User onboarding library with smooth animation of objects and background colors
Stars: ✭ 127 (+126.79%)
Mutual labels:  flutter-examples, flutter-widget, flutter-package
barcode.flutter
barcode generate library for Flutter
Stars: ✭ 58 (+3.57%)
Mutual labels:  flutter-examples, flutter-widget, flutter-package
Interactive-Add-Button-Layout
Custom Layout with interactive add button to impove your UI and UX .
Stars: ✭ 20 (-64.29%)
Mutual labels:  flutter-examples, flutter-widget, flutter-package
liquid button
Liquify your buttons, web demo at website
Stars: ✭ 18 (-67.86%)
Mutual labels:  flutter-widget, flutter-package
flutter todos
A cross platform todo list app using flutter, sqlite etc. If you read the code, you will understand how to create simple elegant mobile app using Flutter and Dart language.
Stars: ✭ 60 (+7.14%)
Mutual labels:  flutter-examples, flutter-widget
Flutter-Chat-Bar
Link to the package -. https://pub.dartlang.org/packages/flutter_chat_bar
Stars: ✭ 39 (-30.36%)
Mutual labels:  flutter-examples, flutter-package
dough
This package provides some widgets you can use to create a smooshy UI.
Stars: ✭ 518 (+825%)
Mutual labels:  flutter-widget, flutter-package
rainbow container
🌈 A magical container which changes colors whenever its build method is called.
Stars: ✭ 21 (-62.5%)
Mutual labels:  flutter-widget, flutter-package
PygameWidgets
A module for use with Pygame. Includes fully customisable buttons, textboxes, sliders and many more, as well as the ability to create and run animations on these widgets.
Stars: ✭ 34 (-39.29%)
Mutual labels:  switch, animations
flutter link previewer
URL preview extracted from the provided text with basic customization and ability to render from cached data.
Stars: ✭ 35 (-37.5%)
Mutual labels:  flutter-widget, flutter-package
buttons tabbar
A Flutter package that implements a TabBar where each label is a toggle button.
Stars: ✭ 49 (-12.5%)
Mutual labels:  flutter-widget, flutter-package

custom_switch

Beautiful Custom Switch package created with Flutter.

Say Thanks!

The source code is 100% Dart, and everything resides in the /lib folder.

Show some ❤️ and star the repo to support the project

GitHub followers Twitter Follow

Open Source Love

💻 Installation

In the dependencies: section of your pubspec.yaml, add the following line:

custom_switch: <latest_version>

Import in your project:

import 'package:custom_switch/custom_switch.dart';

Basic Usage

class HomeScreen extends StatefulWidget {
  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {

  bool status = false;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Custom Switch Example'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            CustomSwitch(
              activeColor: Colors.pinkAccent,
              value: status,
              onChanged: (value) {
                print("VALUE : $value");
                setState(() {
                  status = value;
                });
              },
            ),
            SizedBox(height: 12.0,),
            Text('Value : $status', style: TextStyle(
              color: Colors.black,
              fontSize: 20.0
            ),)
          ],
        ),
      ),
    );
  }
}

Screenshots

custom_switch

👨 Developed By

Mohak Gupta

👍 How to Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

📃 License

Copyright (c) 2019 Mohak Gupta

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].