lorem_cutesum 1.0.0

  • Readme
  • Changelog
  • Installing
  • 70

lorem_cutesum #

A Flutter package for obtaining cute baby animal image url strings and lorem ipsum styled filler text.

cute black kitten

Getting Started #

This project is intended to allow developers of Flutter apps, during the design phase and beyond, the opportunity to have fun with their placeholder text and images.

Lorem Cutesum gifts users with the opportunity to get a copyright-free image url String of an adorable baby animal with the call of a static method.

Need filler text? You can get a single word, a sentence, or a paragraphs worth of words consisting of the actual names of baby animals, like puggles, piglets, and pups!

What constructors / methods / constants are in the API? #

  • Current features:
    • randomImageUrl() static method, which returns a random copyright-free image url String of a cute animal baby
    • loremCutesum({int words = 10}) static method, which returns a formatted String with a randomly selected number of animal baby names:
      • dependent on the int value passed to the optional named parameter
      • default optional named parameter assigned a value of 10
      • formatted String begins with an Uppercase letter, and ends with a period
  • Current limitations:
    • static image url list contains only 100 entries
    • static animal baby name list is also limited in choice
  • Improvements planned for next release:
    • add to the list of baby animal images and nbaby animal names
    • expose a method for returning a random list of images, based on user input

How do I use Lorem Cutesum? #

First, incorporate this plugin into your Flutter project by adding it as a dependency to your app's pubspec.yaml file:

name: example
description: A Flutter app.

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^0.1.2

  lorem_cutesum: ^1.0.0

You can also reference the git repo directly if you want:

dependencies:
    lorem_cutesum:
        git: git://github.com/JDVila/lorem_cutesum.git

You should then run flutter packages upgrade or update your packages in your IDE.

Next, import the package into your app:

import 'package:lorem_cutesum/lorem_cutesum.dart';

Then, call the necessary methods statically from the Cutesum class - for example:

Image.network(Cutesum.randomImageUrl());

Text(${Cutesum.loremCutesum(words: 50)});

For more examples, check out the sample app in the example directory within this repository.

License #

MIT License, Copyright (c) 2019 Jose Vila. You're a wizard, Harry.

[1.0.0] - 06/05/2019

  • Initial release.
  • Current features:
    • randomImageUrl() static method, which returns a random copyright-free image url String of a cute animal baby
    • loremCutesum({int words = 10}) static method, which returns a formatted String with a randomly selected number of animal baby names:
      • dependent on the int value passed to the optional named parameter
      • default optional named parameter assigned a value of 10
      • formatted String begins with an Uppercase letter, and ends with a period
  • Current limitations:
    • static image url list contains only 100 entries
    • static animal baby name list is also limited in choice

Use this package as a library

1. Depend on it

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


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

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

  • Dart: 2.6.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

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

For more information see the pub package layout conventions.

Dependencies

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