featurestar 1.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 64

featurestar #

A star rating package with features

Getting Started #

dependencies:  
  featurestar  : ^1.1.0
$  flutter pub get
import  'package:featurestar/featurestar.dart';

Example #

FeatureStar(  
	spaceBetween: 15.0,
	data: [  
	  FeatureData(featureText: 'Landlord', rate: 4.8, starColor: Colors.red),  
	  FeatureData(featureText: 'Property', rate: 5.0),  
	  FeatureData(featureText: 'Neighborhood', rate: 4.5),  
	]
);

Customization #

NameTypeDescription
featureTextStringfeature text for the star row
featureTextStyleTextStylestyle of the feature text
starColorColorcolor of the stars
starSizedoublesize of the stars
ratedoublerate of the stars (ex: 2.5)
rateTextStyleTextStylestyle of the rate text

Contributions #

Contributions of any kind are more than welcome! Feel free to fork and improve in any way you want, make a pull request, or open an issue.

Changelog #

All notable changes to this project will be documented in this file.

1.0.0 - 2020-05-03 #

Added #

  • Initial Commit

1.1.0 - 2020-05-03 #

Added #

  • Stars can have half stars now

example/lib/main.dart

import 'package:featurestar/featurestar.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Feature Star Example',
      debugShowCheckedModeBanner: false,
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: Container(
          padding: EdgeInsets.all(16),
          child:
          FeatureStar(
            data: [
              FeatureData(featureText: 'Landlord', rate: 3.8, starColor: Colors.red),
              FeatureData(featureText: 'Property', rate: 5.0),
              FeatureData(featureText: 'Neighborhood', rate: 4.5),
            ],
          ),
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  featurestar: ^1.1.0

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:featurestar/featurestar.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
36
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
64
Learn more about scoring.

We analyzed this package on Jul 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

because of import path [featurestar] that is in a package requiring null.

Maintenance suggestions

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies
flutter_test