Flutter is a good bilingual reading tool

Time:2021-6-21

Flutter is a good bilingual reading tool

A few days ago, when I was reading English documents, I needed to switch between the original text and the translation, so I came up with an idea, can I display the original text and the translation on one page at the same time?

Why not read the translation directly? I want to accumulate more vocabulary~

First of all, search the Internet for such reading tools, and find that most of them are typesetting in the form of a paragraph of the original text and a paragraph of translation. OK, rule out the possibility of useless work, roll up your sleeves and open them.

The knowledge points involved are mainly related to self drawing components, including layout, font size calculation and update time. Finally, I shut myself up for a day, and the small dark room came out, showing a good effect.

Because my garbage server has been blocked in this special period, I can only put it on GitHub, which is still too slow to hit people.

Let’s take two pictures and leave an impression

Flutter is a good bilingual reading tool

Flutter is a good bilingual reading tool

At present, it has the following functions:

  1. Switch between day mode and night mode
  2. Set the font size of the original text (the size of the translation is calculated automatically)
  3. Set the spacing of paragraphs
  4. Set the color of the original text and translation
  5. Set the display mode to display only the original text, only the translation and reverse display.

We have built a wechat circle, welcome students who are interested in product practice to join us, let’s play together
Flutter is a good bilingual reading tool

Written on March 1, 2020
This article is published by the platform of multiple publicationsArtiPubAutomatic publishing

Recommended Today

A detailed explanation of the differences between Perl and strawberry Perl and ActivePerl

Perl is the abbreviation of practical extraction and report language “practical report extraction language”. Application of activestateperl and strawberry PERL on Windows platformcompiler。 Perl   The relationship between the latter two is that C language and Linux system have their own GCC. The biggest difference between activestate Perl and strawberry Perl is that strawberry Perl […]