mongol 0.3.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 59

mongol #

Widgets for vertical Mongolian

Contents #

Currently this project contains the following widget:

  • MongolText: A vertical version of Text.

Left-to-right line wrapping is supported.

TODO #

  • Add text styling and expose MongolRichText.

[0.3.0] - 2019.11.29

  • Added a default Mongolian font.
  • Hiding MongolRichText for now since TextSpans are not yet supported.

[0.2.0] - 2019.11.26

  • Added support for new line characters.

[0.1.0] - 2019.11.24

  • Refactored into MongolText and MongolRichText widgets to more closely match Text and RichText.

[0.0.1] - 2019.7.23

  • Provides a MongolText widget that handles line wrapping at spaces.
  • Doesn't handle new lines or styling.

example/README.md

mongol #

You can create vertical text with the MongolText widget.

MongolText('ᠮᠣᠩᠭᠣᠯ')

Here is a full example:

import 'package:flutter/material.dart';
import 'package:mongol/mongol_text.dart';

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

class DemoApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('mongol package demo')),
        body: Stack(
          children: <Widget>[
            Center(
              child: Container(
                color: Colors.blue[100],
                child: MongolText(
                  'ᠮᠣᠩᠭᠣᠯ\nᠪᠢᠴᠢᠭ',
                  style: TextStyle(fontSize: 100),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  mongol: ^0.3.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:mongol/mongol.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
19
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]
59
Learn more about scoring.

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

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

Health suggestions

Format lib/mongol_paragraph.dart.

Run flutter format to format lib/mongol_paragraph.dart.

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