{"id":298168,"date":"2020-02-04T09:00:31","date_gmt":"2020-02-04T09:00:31","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298168"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298168","title":{"rendered":"[\u041f\u043e \u0434\u043e\u043a\u0430\u043c] Flutter. \u0427\u0430\u0441\u0442\u044c 4. \u0414\u043b\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/funcorp\/blog\/486822\/\">\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043d\u0435\u0434\u0435\u043b\u044e \u0441 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438 <a href=\"https:\/\/flutter.dev\/docs\/get-started\/flutter-for\/web-devs\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Flutter<\/a> \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u00ab\u0432\u043e\u043f\u0440\u043e\u0441-\u043e\u0442\u0432\u0435\u0442\u00bb. 4-\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0441\u0432\u0435\u0449\u0430\u0435\u0442 \u0432 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0441\u0442\u0438\u043b\u0435 Flutter \u0434\u043b\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u041e\u043d\u0430 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 \u0432\u0451\u0440\u0441\u0442\u043a\u0435 \u0438 \u0432\u044b\u0448\u043b\u0430 \u043d\u0435 \u0442\u0430\u043a\u043e\u0439 \u043e\u0431\u044a\u0451\u043c\u043d\u043e\u0439, \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435. \u0422\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0441\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u043c\u0441\u044f Flutter \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0438\u043b\u0438\u0439 \u044d\u0442\u043e \u0437\u0430\u0439\u043c\u0451\u0442.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jw\/ga\/vd\/jwgavdwpl1hkx3h0zxj17vydoss.jpeg\"><br \/>  <a name=\"habracut\"><\/a><br \/>  \u0415\u0441\u043b\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043e\u043f\u044b\u0442 \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u043e\u0434 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443, \u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u0447\u0430\u0441\u0442\u0438:<\/p>\n<p>  <a href=\"https:\/\/habr.com\/ru\/company\/funcorp\/blog\/442432\/\">Flutter. \u0427\u0430\u0441\u0442\u044c 1. \u0414\u043b\u044f Android-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/company\/funcorp\/blog\/477182\/\">Flutter. \u0427\u0430\u0441\u0442\u044c 2. \u0414\u043b\u044f iOS-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/company\/funcorp\/blog\/484284\/\">Flutter. \u0427\u0430\u0441\u0442\u044c 3. \u0414\u043b\u044f React Native-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/a><br \/>  <b>Flutter. \u0427\u0430\u0441\u0442\u044c 4. \u0414\u043b\u044f Web-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/b><br \/>  Flutter. \u0427\u0430\u0441\u0442\u044c 5. \u0414\u043b\u044f Xamarin.Forms-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/p>\n<h2>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435:<\/h2>\n<p>   <\/p>\n<ol>\n<li><a href=\"#basic\">\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0432\u0451\u0440\u0441\u0442\u043a\u0430<\/a><br \/> \n<ul>\n<li><a href=\"#style\">\u041a\u0430\u043a \u0441\u0442\u0438\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442?<\/a><\/li>\n<li><a href=\"#background\">\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430?<\/a><\/li>\n<li><a href=\"#center\">\u041a\u0430\u043a \u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b?<\/a><\/li>\n<li><a href=\"#width\">\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0448\u0438\u0440\u0438\u043d\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430?<\/a><\/li>\n<\/ul>\n<p>   <\/li>\n<li><a href=\"#positions_and_sizes\">\u041f\u043e\u0437\u0438\u0446\u0438\u0438 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u044b<\/a><br \/> \n<ul>\n<li><a href=\"#absolute_position\">\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e?<\/a><\/li>\n<li><a href=\"#rotate\">\u041a\u0430\u043a \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c?<\/a><\/li>\n<li><a href=\"#scale\">\u041a\u0430\u043a \u0441\u043a\u0435\u0439\u043b\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b?<\/a><\/li>\n<li><a href=\"#gradient\">\u041a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442?<\/a><\/li>\n<\/ul>\n<p>   <\/li>\n<li><a href=\"#shape\">\u0424\u043e\u0440\u043c\u0430<\/a><br \/> \n<ul>\n<li><a href=\"#rounded_corners\">\u041a\u0430\u043a \u0441\u043a\u0440\u0443\u0433\u043b\u044f\u0442\u044c \u0443\u0433\u043b\u044b?<\/a><\/li>\n<li><a href=\"#shadow\">\u041a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u043d\u044c?<\/a><\/li>\n<li><a href=\"#circle\">\u041a\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0443\u0433\u043b\u044b\u0435 \u0438 \u044d\u043b\u043b\u0438\u043f\u0441\u043e\u0432\u0438\u0434\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b?<\/a><\/li>\n<\/ul>\n<p>   <\/li>\n<li><a href=\"#text\">\u0422\u0435\u043a\u0441\u0442<\/a><br \/> \n<ul>\n<li><a href=\"#space\">\u041a\u0430\u043a \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043a\u0441\u0442\u043e\u043c?<\/a><\/li>\n<li><a href=\"#span\">\u041a\u0430\u043a \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430?<\/a><\/li>\n<li><a href=\"#overflow\">\u041a\u0430\u043a \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043f\u043e\u043a\u0430\u0437 \u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430?<\/a><\/li>\n<\/ul>\n<p>   <\/li>\n<\/ol>\n<p>  <a name=\"basic\"><\/a><\/p>\n<h2><b>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0432\u0451\u0440\u0441\u0442\u043a\u0430<\/b><\/h2>\n<p>  <a name=\"style\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441:<\/h3>\n<p>  \u041a\u0430\u043a \u0441\u0442\u0438\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442:<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/TextStyle-class.html\">TextStyle<\/a>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440:<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;     Lorem ipsum &lt;\/div&gt;  .greybox {       background-color: #e0e0e0; \/* grey 300 *\/       width: 320px;       height: 240px;       font: 900 24px Georgia;     } <\/code><\/pre>\n<p>  Flutter<\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Text(     &quot;Lorem ipsum&quot;,     style: TextStyle(       fontSize: 24,       fontWeight: FontWeight.w900,       fontFamily: &quot;Georgia&quot;,     ),   ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"background\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441:<\/h3>\n<p>  \u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxDecoration-class.html\">BoxDecoration<\/a>.<\/p>\n<h4>\u041e\u0442\u043b\u0438\u0447\u0438\u044f<\/h4>\n<p>  \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>background-color<\/code> \u0432 CSS \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430. <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxDecoration-class.html\">BoxDecoration<\/a> \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0431\u043e\u043b\u0435\u0435 \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0441\u043f\u0435\u043a\u0442\u0440 \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0443\u0433\u043b\u043e\u0432, \u043e\u043a\u0430\u043d\u0442\u043e\u0432\u043a\u0443 \u0438 \u0442.\u043f.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   Lorem ipsum &lt;\/div&gt;  .greybox {       background-color: #e0e0e0;  \/* grey 300 *\/       width: 320px;       height: 240px;       font: 900 24px Roboto;     }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Text(     &quot;Lorem ipsum&quot;,     style: bold24Roboto,   ),   width: 320,   height: 240,   decoration: BoxDecoration(     color: Colors.grey[300],   ), );<\/code><\/pre>\n<p>  <a name=\"center\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441:<\/h3>\n<p>  \u041a\u0430\u043a \u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0438\u0434\u0436\u0435\u0442\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/widgets\/Center-class.html\">Center<\/a>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   Lorem ipsum &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center;  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Text(       &quot;Lorem ipsum&quot;,       style: bold24Roboto,     ),   ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"width\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441:<\/h3>\n<p>  \u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0448\u0438\u0440\u0438\u043d\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <code>width<\/code>.<\/p>\n<h4>\u041e\u0442\u043b\u0438\u0447\u0438\u044f<\/h4>\n<p>  \u0423 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 Flutter \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>width<\/code> \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043e. \u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c <code>maxWidth<\/code> \u0438\u043b\u0438 <code>minWidth<\/code>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u0438\u0434\u0436\u0435\u0442 <a href=\"https:\/\/api.flutter.dev\/flutter\/rendering\/BoxConstraints-class.html\">BoxConstraints<\/a>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440:<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;    height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redbox {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff;   width: 100%;   max-width: 240px;  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Container( \/\/ red box       child: Text(         &quot;Lorem ipsum&quot;,         style: bold24Roboto,       ),       decoration: BoxDecoration(         color: Colors.red[400],       ),       padding: EdgeInsets.all(16),       width: 240, \/\/max-width is 240     ),   ),   width: 320,    height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"positions_and_sizes\"><\/a><\/p>\n<h2><b>\u041f\u043e\u0437\u0438\u0446\u0438\u0438 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u044b<\/b><\/h2>\n<p>  <a name=\"absolute_position\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0438\u0434\u0436\u0435\u0442\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/widgets\/Positioned-class.html\">Positioned<\/a> \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/widgets\/Stack-class.html\">Stack<\/a>.<\/p>\n<h4>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f<\/h4>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   position: relative;  } .redbox {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff;   position: absolute;   top: 24px;   left: 24px;  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Stack(     children: [       Positioned( \/\/ red box         child: Container(           child: Text(             &quot;Lorem ipsum&quot;,             style: bold24Roboto,           ),           decoration: BoxDecoration(             color: Colors.red[400],           ),           padding: EdgeInsets.all(16),         ),         left: 24,         top: 24,       ),     ],   ),    width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"rotate\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0438\u0434\u0436\u0435\u0442\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/widgets\/Transform-class.html\">Transform<\/a>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redbox {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff;   transform: rotate(15deg);  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ gray box   child: Center(     child: Transform(       child: Container( \/\/ red box         child: Text(           &quot;Lorem ipsum&quot;,           style: bold24Roboto,           textAlign: TextAlign.center,         ),         decoration: BoxDecoration(           color: Colors.red[400],         ),         padding: EdgeInsets.all(16),       ),       alignment: Alignment.center,       transform: Matrix4.identity()         ..rotateZ(15 * 3.1415927 \/ 180),     ),    ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"scale\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u0441\u043a\u0435\u0439\u043b\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0438\u0434\u0436\u0435\u0442\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/widgets\/Transform-class.html\">Transform<\/a>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redbox {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff;   transform: scale(1.5);  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ gray box   child: Center(     child: Transform(       child: Container( \/\/ red box         child: Text(           &quot;Lorem ipsum&quot;,           style: bold24Roboto,           textAlign: TextAlign.center,         ),         decoration: BoxDecoration(           color: Colors.red[400],         ),         padding: EdgeInsets.all(16),       ),       alignment: Alignment.center,       transform: Matrix4.identity()         ..scale(1.5),      ),    width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"gradient\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxDecoration-class.html\">BoxDecoration<\/a> \u0438 \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <code>gradient<\/code>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0439 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442<\/p>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redbox {   padding: 16px;   color: #ffffff;   background: linear-gradient(180deg, #ef5350, rgba(0, 0, 0, 0) 80%);  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Container( \/\/ red box       child: Text(         &quot;Lorem ipsum&quot;,         style: bold24Roboto,       ),       decoration: BoxDecoration(         gradient: LinearGradient(           begin: const Alignment(0.0, -1.0),           end: const Alignment(0.0, 0.6),           colors: &lt;Color&gt;[             const Color(0xffef5350),             const Color(0x00ef5350)           ],         ),       ),        padding: EdgeInsets.all(16),     ),   ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  \u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0439 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442<\/p>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redbox {   padding: 16px;   color: #ffffff;   background: linear-gradient(90deg, #ef5350, rgba(0, 0, 0, 0) 80%);  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Container( \/\/ red box       child: Text(         &quot;Lorem ipsum&quot;,         style: bold24Roboto,       ),       decoration: BoxDecoration(         gradient: LinearGradient(           begin: const Alignment(-1.0, 0.0),           end: const Alignment(0.6, 0.0),           colors: &lt;Color&gt;[             const Color(0xffef5350),             const Color(0x00ef5350)           ],         ),       ),        padding: EdgeInsets.all(16),     ),   ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"shape\"><\/a><\/p>\n<h2><b>\u0424\u043e\u0440\u043c\u0430<\/b><\/h2>\n<p>  <a name=\"rounded_corners\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u0441\u043a\u0440\u0443\u0433\u043b\u044f\u0442\u044c \u0443\u0433\u043b\u044b?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxDecoration-class.html\">BoxDecoration<\/a> \u0438 \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <code>borderRadius<\/code>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* gray 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redbox {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff;   border-radius: 8px;  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Container( \/\/ red circle       child: Text(         &quot;Lorem ipsum&quot;,         style: bold24Roboto,       ),       decoration: BoxDecoration(         color: Colors.red[400],         borderRadius: BorderRadius.all(           const Radius.circular(8),         ),        ),       padding: EdgeInsets.all(16),     ),   ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"shadow\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u043d\u044c?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxShadow-class.html\">BoxShadow<\/a>.<\/p>\n<h4>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f<\/h4>\n<p>  <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxShadow-class.html\">BoxShadow<\/a> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <code>boxShadow<\/code> \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxDecoration-class.html\">BoxDecoration<\/a>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redbox {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff;   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8),               0 6px 20px rgba(0, 0, 0, 0.5); }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Container( \/\/ red box       child: Text(         &quot;Lorem ipsum&quot;,         style: bold24Roboto,       ),       decoration: BoxDecoration(         color: Colors.red[400],         boxShadow: [           BoxShadow (             color: const Color(0xcc000000),             offset: Offset(0, 2),             blurRadius: 4,           ),           BoxShadow (             color: const Color(0x80000000),             offset: Offset(0, 6),             blurRadius: 20,           ),         ],        ),       padding: EdgeInsets.all(16),     ),   ),   width: 320,   height: 240,   decoration: BoxDecoration(     color: Colors.grey[300],   ),   margin: EdgeInsets.only(bottom: 16), );<\/code><\/pre>\n<p>  <a name=\"circle\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0443\u0433\u043b\u044b\u0435 \u0438 \u044d\u043b\u043b\u0438\u043f\u0441\u043e\u0432\u0438\u0434\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u044b?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>enum<\/code>-\u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxShape-class.html\">BoxShape<\/a>.<\/p>\n<h4>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f<\/h4>\n<p>  <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxShape-class.html\">BoxShape<\/a> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 shape \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/BoxDecoration-class.html\">BoxDecoration<\/a>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redcircle&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* gray 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redcircle {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff;   text-align: center;   width: 160px;   height: 160px;   border-radius: 50%;  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Container( \/\/ red circle       child: Text(         &quot;Lorem ipsum&quot;,         style: bold24Roboto,         textAlign: TextAlign.center,        ),       decoration: BoxDecoration(         color: Colors.red[400],         shape: BoxShape.circle,        ),       padding: EdgeInsets.all(16),       width: 160,       height: 160,      ),   ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"text\"><\/a><\/p>\n<h2><b>\u0422\u0435\u043a\u0441\u0442<\/b><\/h2>\n<p>  <a name=\"space\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043a\u0441\u0442\u043e\u043c?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/TextStyle-class.html\">TextStyle<\/a> \u0438 \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432 <code>letterSpacing<\/code> \u0438 <code>wordSpacing<\/code>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redbox {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff;   letter-spacing: 4px;  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Container( \/\/ red box       child: Text(         &quot;Lorem ipsum&quot;,         style: TextStyle(           color: Colors.white,           fontSize: 24,           fontWeight: FontWeight.w900,           letterSpacing: 4,          ),       ),       decoration: BoxDecoration(         color: Colors.red[400],       ),       padding: EdgeInsets.all(16),     ),   ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"span\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0438\u0434\u0436\u0435\u0442\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/widgets\/RichText-class.html\">RichText<\/a> \u0438 \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/painting\/TextSpan-class.html\">TextSpan<\/a>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem &lt;em&gt;ipsum&lt;\/em&gt;    &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;    display: flex;   align-items: center;   justify-content: center; } .redbox {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff; }  .redbox em {   font: 300 48px Roboto;   font-style: italic; }<\/code><\/pre>\n<p>  Flutter<\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Container( \/\/ red box       child: RichText(         text: TextSpan(           style: bold24Roboto,           children: &lt;TextSpan&gt;[             TextSpan(text: &quot;Lorem &quot;),             TextSpan(               text: &quot;ipsum&quot;,               style: TextStyle(                 fontWeight: FontWeight.w300,                 fontStyle: FontStyle.italic,                 fontSize: 48,               ),             ),           ],         ),       ),        decoration: BoxDecoration(         color: Colors.red[400],       ),       padding: EdgeInsets.all(16),     ),   ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  <a name=\"overflow\"><\/a><\/p>\n<h3>\u0412\u043e\u043f\u0440\u043e\u0441<\/h3>\n<p>  \u041a\u0430\u043a \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043f\u043e\u043a\u0430\u0437 \u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430?<\/p>\n<h4>\u041e\u0442\u0432\u0435\u0442<\/h4>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043e\u0432\u043e\u0439\u0441\u0442\u0432 <code>maxLines<\/code> \u0438 <code>overflow<\/code> \u0432\u0438\u0434\u0436\u0435\u0442\u0430 <a href=\"https:\/\/api.flutter.dev\/flutter\/widgets\/Text-class.html\">Text<\/a>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440<\/h4>\n<p>  HTML\/CSS<\/p>\n<pre><code class=\"css\">&lt;div class=&quot;greybox&quot;&gt;   &lt;div class=&quot;redbox&quot;&gt;     Lorem ipsum dolor sit amet, consec etur   &lt;\/div&gt; &lt;\/div&gt;  .greybox {   background-color: #e0e0e0; \/* grey 300 *\/   width: 320px;   height: 240px;   font: 900 24px Roboto;   display: flex;   align-items: center;   justify-content: center; } .redbox {   background-color: #ef5350; \/* red 400 *\/   padding: 16px;   color: #ffffff;   overflow: hidden;   text-overflow: ellipsis;   white-space: nowrap;  }<\/code><\/pre>\n<p>  Flutter  <\/p>\n<pre><code class=\"kotlin\">var container = Container( \/\/ grey box   child: Center(     child: Container( \/\/ red box       child: Text(         &quot;Lorem ipsum dolor sit amet, consec etur&quot;,         style: bold24Roboto,         overflow: TextOverflow.ellipsis,         maxLines: 1,        ),       decoration: BoxDecoration(         color: Colors.red[400],       ),       padding: EdgeInsets.all(16),     ),   ),   width: 320,   height: 240,   color: Colors.grey[300], );<\/code><\/pre>\n<p>  \u0412 \u043a\u043e\u043d\u0446\u0435 \u0434\u0435\u043a\u0430\u0431\u0440\u044f 2019 \u0433\u043e\u0434\u0430, \u0441 \u0432\u044b\u0445\u043e\u0434\u043e\u043c Flutter 1.12, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432\u0435\u0431\u0430 \u043f\u0435\u0440\u0435\u0448\u043b\u0430 \u0432 \u0441\u0442\u0430\u0434\u0438\u044e beta! \u0418 \u044d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u044c, \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0430\u044f, \u0447\u0442\u043e \u0432 \u043d\u0435\u0434\u0430\u043b\u0451\u043a\u043e\u043c \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0451 \u0447\u0430\u0449\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0442\u044c \u0441\u0430\u0439\u0442\u044b, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 Flutter. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u0441\u0451 \u0435\u0449\u0451 \u0432 \u0440\u0430\u0437\u0434\u0443\u043c\u044c\u044f\u0445, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0438 \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043c\u043e\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u044b\u043b\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439. \u0410 \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0443 \u043c\u0435\u043d\u044f \u0432\u0441\u0451. \u0414\u0430 \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0435\u0442 Google \u0432\u0430\u0448 Chrome!<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/funcorp\/blog\/486822\/\"> https:\/\/habr.com\/ru\/company\/funcorp\/blog\/486822\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/funcorp\/blog\/486822\/\">\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043d\u0435\u0434\u0435\u043b\u044e \u0441 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438 <a href=\"https:\/\/flutter.dev\/docs\/get-started\/flutter-for\/web-devs\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Flutter<\/a> \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u00ab\u0432\u043e\u043f\u0440\u043e\u0441-\u043e\u0442\u0432\u0435\u0442\u00bb. 4-\u044f \u0447\u0430\u0441\u0442\u044c \u043e\u0441\u0432\u0435\u0449\u0430\u0435\u0442 \u0432 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0441\u0442\u0438\u043b\u0435 Flutter \u0434\u043b\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u041e\u043d\u0430 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0430 \u0432\u0451\u0440\u0441\u0442\u043a\u0435 \u0438 \u0432\u044b\u0448\u043b\u0430 \u043d\u0435 \u0442\u0430\u043a\u043e\u0439 \u043e\u0431\u044a\u0451\u043c\u043d\u043e\u0439, \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435. \u0422\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0441\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u043c\u0441\u044f Flutter \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u0438\u043b\u0438\u0439 \u044d\u0442\u043e \u0437\u0430\u0439\u043c\u0451\u0442.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jw\/ga\/vd\/jwgavdwpl1hkx3h0zxj17vydoss.jpeg\">  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-298168","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298168"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298168\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}