flutter_cupertino_settings 0.0.8

  • readme.md
  • Installing
  • Versions
  • 85


Pub badge

A Flutter widget to create an iOS settings-table (static TableView).

Get from Pub

  • [x] Basic items (CSHeader, CSWidget, CSControl, CSButton, CSLink)
  • [x] Support for icons
  • [x] Item selection
  • [ ] Dynamic lists
  • [ ] Themes

import 'package:flutter_cupertino_settings/flutter_cupertino_settings.dart';

CSWidgetStyle brightnessStyle = const CSWidgetStyle(
    icon: const Icon(Icons.brightness_medium, color: Colors.black54)

new CupertinoSettings(<Widget>[
    new CSHeader('Brightness'),
    new CSWidget(new CupertinoSlider(value: 0.5), style: brightnessStyle),
    new CSControl('Auto brightness', new CupertinoSwitch(value: true), style: brightnessStyle,),
    new CSHeader('Selection'),
    new CSSelection(['Day mode','Night mode'], (index) {print(index);}, currentSelection: 0),
    new CSHeader(),
    new CSControl('Loading...', new CupertinoActivityIndicator()),
    new CSButton(CSButtonType.DEFAULT, "Licenses", (){ print("It works!"); }),
    new CSHeader(),
    new CSButton(CSButtonType.DESTRUCTIVE, "Delete all data", (){})

[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:

  flutter_cupertino_settings: ^0.0.8

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_cupertino_settings/flutter_cupertino_settings.dart';
Version Uploaded Documentation Archive
0.0.8 May 2, 2018 Go to the documentation of flutter_cupertino_settings 0.0.8 Download flutter_cupertino_settings 0.0.8 archive
0.0.7 Mar 22, 2018 Go to the documentation of flutter_cupertino_settings 0.0.7 Download flutter_cupertino_settings 0.0.7 archive
0.0.6 Mar 16, 2018 Go to the documentation of flutter_cupertino_settings 0.0.6 Download flutter_cupertino_settings 0.0.6 archive
0.0.5 Mar 10, 2018 Go to the documentation of flutter_cupertino_settings 0.0.5 Download flutter_cupertino_settings 0.0.5 archive
0.0.4 Mar 9, 2018 Go to the documentation of flutter_cupertino_settings 0.0.4 Download flutter_cupertino_settings 0.0.4 archive
0.0.3 Mar 9, 2018 Go to the documentation of flutter_cupertino_settings 0.0.3 Download flutter_cupertino_settings 0.0.3 archive
0.0.2 Mar 9, 2018 Go to the documentation of flutter_cupertino_settings 0.0.2 Download flutter_cupertino_settings 0.0.2 archive
0.0.1 Mar 8, 2018 Go to the documentation of flutter_cupertino_settings 0.0.1 Download flutter_cupertino_settings 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Sep 18, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.3
  • Flutter: 0.8.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Issues and suggestions

Add SDK constraint in pubspec.yaml.

For information about setting SDK constraint, please see https://www.dartlang.org/tools/pub/pubspec#sdk-constraints.

Maintain an example.

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use flutter_cupertino_settings.dart.

Package is pre-v0.1 release.

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

Format lib/flutter_cupertino_settings.dart.

Run flutter format to format lib/flutter_cupertino_settings.dart.


Package Constraint Resolved Available
Direct dependencies
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8