horizontal_select 0.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 48


[0.0.1] - TODO: Add release date. #

  • TODO: Describe initial release.


import 'package:flutter/material.dart';
import 'package:horizontal_select/horizontal_select.dart';
import 'package:horizontal_select/model/horizontal_select_item.dart';
import 'package:horizontal_select/model/horizontal_select_style.dart';

void main() {

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      home: MyHomePage(),

class MyHomePage extends StatelessWidget {
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: <Widget>[
            multiSelect: false,
            itemTextStyle: TextStyle(
              fontSize: 14.0,
            itemPadding: EdgeInsets.all(
            shapeBorder: RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(
            items: [
                text: "10",
                value: 10,
                text: "10",
                value: 10,
            style: HorizontalSelectStyle(
              itemColor: Colors.blue,
              selectedItemColor: Colors.blueGrey,
            onItemSelect: (index, item) {

Use this package as a library

1. Depend on it

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

  horizontal_select: ^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:horizontal_select/horizontal_select.dart';
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 Jul 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.15
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart


  • horizontal_select that is a package requiring null.

Health suggestions

Fix lib/horizontal_select.dart. (-0.50 points)

Analysis of lib/horizontal_select.dart reported 1 hint:

line 74 col 26: Close instances of dart.core.Sink.

Format lib/bloc/horizontal_select_event.dart.

Run flutter format to format lib/bloc/horizontal_select_event.dart.

Maintenance issues and suggestions

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (bloc, flutter_bloc).

The package description is too short. (-20 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.

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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
bloc ^3.0.0 3.0.0 5.0.1
equatable ^1.1.1 1.2.2
flutter 0.0.0
flutter_bloc ^3.2.0 3.2.0 5.0.1
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.2
nested 0.0.4
provider 4.3.1
rxdart 0.23.1 0.24.1
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies