mongol 0.4.1

mongol #

This library is a collection of Flutter widgets for displaying traditional Mongolian vertical text.

Contents #

Currently this project contains the following widgets:

  • MongolText
  • MongolAlertDialog

MongolText #

This is a vertical text version of Flutter's Text widget. Left-to-right line wrapping is supported.

MongolAlertDialog #

This alert dialog works mostly the same as the Flutter AlertDialog.

TODO #

  • Add text styling and expose MongolRichText.
  • Check out the mongol_code package for Unicode conversion in Dart.

[0.4.1] - 2020.2.21

  • Change unsupported 2018 text theme items to 2014 version in MongolAlertDialog

[0.4.0] - 2020.2.19

  • Added MongolAlertDialog.

[0.3.2] - 2020.1.28

  • Fixed bug: Spaces after a newline character caused newline char to be inserted in ParagraphBuilder.

[0.3.1] - 2020.1.5

  • Minor changes. Was going to include mongol_code as a part of this package but released it as a separate Dart package instead.

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

We analyzed this package on Feb 24, 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.7

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.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