switches_kit 0.0.1

  • Readme
  • Changelog
  • Installing
  • 77

switches_kit #

awesome customizable Switches for Flutter

in the repo you will find the awesome switches/toggles widgets implemented in flutter

Thank You!

Please ⭐ this repo and share it with others

gif #

Labeled switch ThemeLabeled switch AnimationLabeled switch Style
Gender switchLike switchDayNight switch

Created #

License #

Copyright 2018 Raouf Rahiche

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Getting Started #

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

[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.

Use this package as a library

1. Depend on it

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


dependencies:
  switches_kit: ^0.0.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:switches_kit/switches_kit.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
79
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
77
Learn more about scoring.

We analyzed this package on Dec 11, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.13.1+4
  • Flutter: 1.12.13+hotfix.2

Health suggestions

Fix lib/src/specialSwitches.dart. (-1 points)

Analysis of lib/src/specialSwitches.dart reported 2 hints:

line 2 col 8: Unused import: 'dart:math'.

line 4 col 8: Unused import: 'package:flutter/scheduler.dart'.

Fix lib/Example/textAnimationExample.dart. (-0.50 points)

Analysis of lib/Example/textAnimationExample.dart reported 1 hint:

line 2 col 8: Unused import: 'dart:math'.

Fix lib/src/LabeledSwitch.dart. (-0.50 points)

Analysis of lib/src/LabeledSwitch.dart reported 1 hint:

line 179 col 27: This function has a return type of 'Widget', but doesn't end with a return statement.

Format lib/Example/ThemeExample.dart.

Run flutter format to format lib/Example/ThemeExample.dart.

Maintenance suggestions

Package is getting outdated. (-22.19 points)

The package was last published 63 weeks ago.

The package description is too short. (-18 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and switches_kit.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test