mgl_view

A Flutter package to create tradition mongolion textview. 一个用于竖排显示蒙古文的flutter组件

Getting Started

示例: Container( color: Colors.black12, width: 300, height: 520, child: new MView( "2018 ᠣᠨ ᠤ᠋ 9 ᠰᠠᠷ᠎ᠠ ᠶ᠋ᠢᠨ 7 ᠤ᠋ ᠡᠳᠦᠷ ᠬᠥᠬᠡᠬᠣᠲᠠ ᠳ᠋ᠤ᠌ ᠥᠪᠦᠷ ᠮᠣᠩᠭᠤᠯ ᠤ᠋ᠨ ᠬᠡᠪᠯᠡᠯ ᠤ᠋ᠨ ᠪᠦᠯᠦᠭᠯᠡᠯ ᠡᠴᠡ ᠳᠠᠭᠠᠭᠠᠴᠢᠯᠠᠨ ᠪᠡᠶᠡᠯᠡᠭᠦᠯᠦᠭᠰᠡᠨ ᠤᠯᠤᠰ ᠤᠨ ᠰᠢᠨᠵᠢᠯᠡᠬᠦ ᠤᠬᠠᠭᠠᠨ ᠮᠡᠷᠭᠡᠵᠢᠯ ᠦ᠋ᠨ ᠲᠤᠯᠭᠠᠭᠤᠷᠢᠯᠠᠭᠰᠠᠨ ᠲᠥᠰᠦᠯ (ᠮᠣᠩᠭᠤᠯ ᠳ᠋ᠢᠭᠢᠲ ᠬᠡᠪᠯᠡᠯ) ᠤᠨ ᠰᠤᠳᠤᠯᠭᠠᠨ ᠤ ᠦᠷ᠎ᠡ ᠪᠦᠲᠦᠭᠡᠯ ᠢ᠋ ᠨᠡᠢᠲᠡᠯᠡᠬᠦ ᠬᠤᠷᠠᠯ ᠵᠢᠴᠢ ᠮᠣᠩᠭᠤᠯ ᠳ᠋ᠢᠭᠢᠲ ᠡᠬᠢ ᠪᠠᠶᠠᠯᠢᠭ ᠤᠨ ᠪᠠᠷᠢᠮᠵᠢᠶ᠎ᠠ ᠬᠡᠷᠡᠭᠯᠡᠭᠡᠨ ᠦ᠌ ᠭᠣᠣᠯᠳᠠᠯᠭᠠᠲᠤ ᠲᠤᠷᠰᠢᠯᠲᠠ ᠶ᠋ᠢᠨ ᠲᠠᠰᠤᠭ ᠪᠠᠢᠭᠤᠯᠬᠤ ᠶᠣᠰᠣᠯᠠᠯ ᠶᠠᠪᠤᠭᠳᠠᠪᠠ᠃ ᠬᠤᠷᠠᠯ ᠳ᠋ᠤ᠌ ᠰᠢᠨᠵᠢᠯᠡᠬᠦ ᠤᠬᠠᠭᠠᠨ ᠮᠡᠷᠭᠡᠵᠢᠯ ᠦ᠋ᠨ ᠲᠤᠯᠭᠠᠭᠤᠷᠢᠯᠠᠭᠰᠠᠨ ᠲᠥᠰᠦᠯ ᠨᠢ ᠤᠯᠤᠰ ᠠᠷᠠᠳ ᠤ᠋ᠨ ᠠᠵᠤ ᠠᠬᠤᠢ ᠨᠡᠢᠭᠡᠮ ᠦ᠋ᠨ ᠬᠥᠭᠵᠢᠯᠲᠡ ᠶ᠋ᠢᠨ ᠶᠠᠪᠤᠴᠠ ᠳ᠋ᠡᠬᠢ ᠰᠢᠨᠵᠢᠯᠡᠬᠦ ᠤᠬᠠᠭᠠᠨ ᠮᠡᠷᠭᠡᠵᠢᠯ ᠦ᠋ᠨ ᠱᠠᠭᠠᠷᠳᠠᠯᠭ᠎ᠠ  ᠪᠠᠷ ᠶᠡᠷᠦᠩᠬᠡᠢᠯᠡᠭᠰᠡᠨ ᠴᠢᠨᠠᠷᠲᠠᠢ᠂ᠠᠵᠢᠯ ᠮᠡᠷᠭᠡᠵᠢᠯ ᠪᠠ ᠣᠷᠤᠨ ᠨᠤᠲᠤᠭ ᠠᠯᠤᠰᠯᠠᠭᠰᠠᠨ ᠰᠢᠨᠵᠢᠯᠡᠬᠦ ᠤᠬᠠᠭᠠᠨ ᠮᠡᠷᠭᠡᠵᠢᠯ ᠦ᠋ᠨ ᠬᠦᠨᠳᠦ ᠴᠢᠬᠤᠯᠠ ᠠᠰᠠᠭᠤᠳᠠᠯ ᠢ ᠰᠢᠶ᠋ᠳᠪᠦᠷᠢᠯᠡᠨ ᠮᠡᠷᠭᠡᠵᠢᠯ ᠦ᠋ᠨ ᠲᠠᠯ᠎ᠠ ᠪᠠᠷ ᠰᠢᠪᠲᠤᠯᠤᠯᠲᠠ ᠬᠢᠵᠦ ᠠᠵᠤ ᠦᠢᠯᠡᠰ ᠦ᠋ᠨ ᠥᠷᠢᠰᠦᠯᠳᠦᠬᠦ ᠬᠦᠴᠦᠨ ᠢ ᠳᠡᠭᠡᠭᠰᠢᠯᠡᠭᠦᠯᠬᠦ ᠶ᠋ᠢᠨ ᠲᠥᠯᠦᠭᠡ ᠤᠯᠤᠰ ᠠ᠋ᠴᠠ ᠪᠠᠢᠭᠤᠯᠤᠭᠰᠠᠨ ᠬᠦᠨᠳᠦ ᠴᠢᠬᠤᠯᠠ ᠲᠥᠰᠦᠯ ᠪᠣᠯᠬᠤ ᠶᠤᠮ᠃", fontSize: 20, color: Colors.green, fontFamily: 'Menk Qagan Tig', ), ),

可以自动根据父组件的尺寸进行布局计算,溢出的文字不会显示。

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

Libraries

MViewLayout
mgl_text
mgl_view