usefulcard 0.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • new42

usefulcard #

A new Flutter package.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.0.1] - - 2020-06-27 #

  • TODO: Describe initial release.


import 'package:flutter/material.dart';

import 'package:usefulcard/usefulcard.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(
        visualDensity: VisualDensity.adaptivePlatformDensity,
      home: MyHomePage(title: 'Flutter Demo Home Page'),

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  _MyHomePageState createState() => _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {


  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: Center(
          child: SingleChildScrollView(
            scrollDirection: Axis.horizontal,
            child: Row(
              children: <Widget>[
                    child: CardShadow(
                      title: 'Love, Victor',
                      contant: 'Stars: Michael Cimino, Rachel Hilson, Anthony Turpel',
                      size: 170,
                  child: CardShadow(
                    title: 'Space Force ',
                    contant: 'Stars: Steve Carell, John Malkovich, Ben Schwartz ',
                  child: CardShadow(
                    title: '1917',
                    contant: 'Stars: Dean-Charles Chapman, George MacKay, Daniel Mays ',

                    Details: ['April 6th, 1917. As a regiment assembles to wage war deep in enemy territory, two soldiers are assigned to race against time and deliver a message that will stop 1,600 men from walking straight into a deadly trap.','Director: Sam Mendes','Writers: Sam Mendes, Krysty Wilson-Cairns'],
                    size: 400,


Use this package as a library

1. Depend on it

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

  usefulcard: ^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:usefulcard/usefulcard.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 6, 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 [usefulcard] that is in a package requiring null.

Health suggestions

Fix lib/usefulcard.dart. (-5.36 points)

Analysis of lib/usefulcard.dart reported 11 hints, including:

line 5 col 7: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: CardShadow.size, CardShadow.Details

line 14 col 14: Name non-constant identifiers using lowerCamelCase.

line 15 col 16: Name non-constant identifiers using lowerCamelCase.

line 25 col 10: Name non-constant identifiers using lowerCamelCase.

line 26 col 10: Name non-constant identifiers using lowerCamelCase.

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.

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
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.1
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies