max_size_text 1.0.10

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

max_size_text #

Maximize size of text given available real-estate.

It works but needs some work.

Returns a Column(...).

Pull Requests #

Pull requests are welcome!

Usage #

Add a new dependency line to your project/pubspec.yaml file:

dependencies:
  ...
  max_size_text: 1.0.10      # use latest version

Don't forget to flutter pub get.

Example #

See example directory.

Output: #

Screenshot

Changelog #

Version 1.0.10 (2020-01-26) #

  • initial public version

example/README.md

Example #

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
        home: SafeArea(
            child: Scaffold(
                body: Center(
                    child: MaxSizeText(
                        text:
                            'The Courage to Be Disliked: The Japanese Phenomenon That Shows You How to Change Your Life and Achieve Real Happiness',
//                        '404: /phone',
                        textStyle: new TextStyle(
                            color: Colors.red[800],
                            fontSize: 32,
                            fontFamily: 'Roboto'))))));
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  max_size_text: ^1.0.10

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:max_size_text/max_size_text.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
47
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]
74
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.8

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.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test