{"id":368521,"date":"2024-05-21T03:44:22","date_gmt":"2024-05-21T03:44:22","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=368521"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=368521","title":{"rendered":"<span>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 Sliver\u2019\u043e\u0432 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e UI<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>Hola, Amigos! \u041d\u0430 \u0441\u0432\u044f\u0437\u0438 \u0421\u0430\u0448\u0430 \u0427\u0430\u043f\u043b\u044b\u0433\u0438\u043d, Flutter-dev \u0430\u0433\u0435\u043d\u0442\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 Amiga \u0438 \u0441\u043e\u0430\u0432\u0442\u043e\u0440 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b\u0430 <a href=\"https:\/\/t.me\/+YDX3yq4hGLY2NGMy\" rel=\"noopener noreferrer nofollow\"><u>Flutter. \u041c\u043d\u043e\u0433\u043e<\/u><\/a>.\u00a0<\/p>\n<p>\u041c\u044b \u0443\u0436\u0435 \u043a\u0430\u0441\u0430\u043b\u0438\u0441\u044c <a href=\"https:\/\/t.me\/flutter_amiga\/178\" rel=\"noopener noreferrer nofollow\"><u>\u0442\u0435\u043c\u044b Sliver&#8217;\u043e\u0432<\/u><\/a>, \u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443. \u0412 \u043d\u0430\u0448\u0435\u0439 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u043d\u0430\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f \u0441\u0435\u0442\u0438 \u043f\u0435\u043a\u0430\u0440\u0435\u043d, \u0433\u0434\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e Sliver&#8217;\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u044d\u0442\u0438 \u0442\u0435\u0445\u043d\u0438\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/efd\/a14\/20e\/efda1420e78686f94e058deab6c7dee0.gif\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/efd\/a14\/20e\/efda1420e78686f94e058deab6c7dee0.gif\"\/><\/figure>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Stack \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0442\u0438\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c DraggableScrollableSheet:<\/p>\n<pre><code>Stack(  children: [    Padding(      padding: const EdgeInsets.fromLTRB(16, 8, 16, 0),      child: CreateProfileCard(state.pageState),    ),    DraggableScrollableSheet(      initialChildSize: 379 \/ 640,      minChildSize: 379 \/ 640,      maxChildSize: 1,      builder: (context, scrollController) {        return Container(          decoration: BoxDecoration(            color: AppColors.white,            borderRadius: const BorderRadius.vertical(top: Radius.circular(30)),          ),          padding: const EdgeInsets.fromLTRB(16, 6, 16, 0),          child: Column(            children: [              Padding(                padding: const EdgeInsets.only(bottom: 15.0),                child: SvgPicture.asset(AppConstants.icons + 'holder.svg'),              ),              Expanded(                child: CustomScrollView(                  controller: scrollController,                  slivers: [...],                ),              ),            ],          ),        );      },    ),<\/code><\/pre>\n<p>\u0412 DraggableScrollableSheet \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0441\u043a\u0440\u043e\u043b\u043b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0432 \u043d\u0430\u0448 CustomScroollView \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Sliver\u2019\u043e\u0432:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/682\/3c5\/06a\/6823c506a8be8bde7883650149964ac7.png\" width=\"800\" height=\"328\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/682\/3c5\/06a\/6823c506a8be8bde7883650149964ac7.png\"\/><\/figure>\n<p>\u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 UI \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c SliverToBoxAdapter:<\/p>\n<pre><code>SliverToBoxAdapter(  child: Padding(    padding: const EdgeInsets.only(top: 8.0),    child: MainBanners(state.pageState),  ), ), \/\/ \u044d\u043b\u0435\u043c\u0435\u043d\u0442 CustomScrollView  class MainBanners extends StatelessWidget {  const MainBanners(this.pageState, {Key? key}) : super(key: key);   final MainPageState pageState;   @override  Widget build(BuildContext context) {    return Container(      height: 120,      child: Column(        mainAxisSize: MainAxisSize.min,        children: [          Expanded(            child: CarouselSlider(              options: CarouselOptions(                autoPlay: true,                height: 88,                viewportFraction: 1.025,              ),              items: List.generate(                5,                (index) => InkWell(                  onTap: () {},                  child: Container(                    width: MediaQuery.of(context).size.width,                    margin: const EdgeInsets.symmetric(horizontal: 5),                    decoration: BoxDecoration(                        borderRadius: const BorderRadius.all(Radius.circular(16)), color: setColor.elementAt(index)),                  ),                ),              ),            ),          ),          Row(            mainAxisAlignment: MainAxisAlignment.center,            children: List.generate(                5,                (index) => InkWell(                      onTap: () {},                      child: Container(                        width: 16.0,                        height: 6.0,                        margin: const EdgeInsets.symmetric(                          vertical: 12.0,                          horizontal: 4.0,                        ),                        decoration: BoxDecoration(                          borderRadius: const BorderRadius.all(Radius.circular(4)),                          color: Theme.of(context).primaryColor.withOpacity(0.5),                        ),                      ),                    )).toList(),          ),        ],      ),    );  } }<\/code><\/pre>\n<pre><code>SliverToBoxAdapter(  child: Padding(    padding: const EdgeInsets.only(top: 28.0, bottom: 8),    child: Row(      mainAxisAlignment: MainAxisAlignment.spaceBetween,      children: [        Text(          '\u041d\u041e\u0412\u0418\u041d\u041a\u0418',          style: Theme.of(context)              .textTheme              .headlineLarge              ?.copyWith(color: AppColors.black),        ),        Row(          children: [            Text(              '\u0432\u0441\u0435',              style: Theme.of(context)                  .textTheme                  .bodyLarge                  ?.copyWith(color: AppColors.black),            ),            const SizedBox(width: 4),            SvgPicture.asset(AppConstants.icons + 'deep_arrow.svg'),          ],        ),      ],    ),  ), ),<\/code><\/pre>\n<p>\u0410 \u0434\u043b\u044f \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c SliverList \u0438 SliverGrid:<\/p>\n<pre><code>SliverGrid.builder(  gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(    crossAxisCount: 2,    childAspectRatio: 160 \/ 208,    crossAxisSpacing: 8,    mainAxisSpacing: 8,  ),  itemCount: 4,  itemBuilder: (context, index) => Container(    padding: const EdgeInsets.only(bottom: 8),    decoration: const BoxDecoration(      borderRadius: BorderRadius.all(Radius.circular(8)),      color: AppColors.white,      boxShadow: [        BoxShadow(          color: Color.fromRGBO(0, 0, 0, 0.1),          blurRadius: 6,        ),        BoxShadow(          color: Color.fromRGBO(0, 0, 0, 0.15),          blurRadius: 2,        ),      ],    ),    child: Column(      children: [        Container(          height: 120,          decoration: const BoxDecoration(            color: Colors.red,            borderRadius: BorderRadius.all(Radius.circular(8)),          ),        )      ],    ),  ), ),<\/code><\/pre>\n<p>Slivers \u0432\u043e Flutter \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0433\u0438\u0431\u043a\u0438\u0445 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445 UI. \u041e\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043b\u0435\u0433\u043a\u043e \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043e\u0431\u044a\u0435\u043c\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u043a\u0435\u0442\u044b.\u00a0\u00a0<\/p>\n<p>\u0421\u043c\u0435\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Slivers \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f UI\/UX \u0432 \u0432\u0430\u0448\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043d\u0430 Flutter, \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u043a\u0430\u0436\u0443\u0442 \u0432\u0430\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e!<\/p>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0430\u0448 \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u0438\u0439 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b <a href=\"https:\/\/t.me\/+YDX3yq4hGLY2NGMy\" rel=\"noopener noreferrer nofollow\"><u>Flutter. \u041c\u043d\u043e\u0433\u043e<\/u><\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0432\u0435\u0434\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e \u0441\u0432\u043e\u0439 \u043b\u0438\u0447\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0438 \u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0441\u043e\u0432\u0435\u0442\u0430\u043c\u0438 \u043e\u0442 \u0441\u043e\u0444\u0442-\u0441\u043a\u0438\u043b\u043b\u043e\u0432 \u0434\u043e \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u043d\u0430\u043d\u0438\u0439. \u0411\u0443\u0434\u0435\u043c \u0440\u0430\u0434\u044b \u043d\u043e\u0432\u044b\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/794510\/\"> https:\/\/habr.com\/ru\/articles\/794510\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>Hola, Amigos! \u041d\u0430 \u0441\u0432\u044f\u0437\u0438 \u0421\u0430\u0448\u0430 \u0427\u0430\u043f\u043b\u044b\u0433\u0438\u043d, Flutter-dev \u0430\u0433\u0435\u043d\u0442\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 Amiga \u0438 \u0441\u043e\u0430\u0432\u0442\u043e\u0440 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b\u0430 <a href=\"https:\/\/t.me\/+YDX3yq4hGLY2NGMy\" rel=\"noopener noreferrer nofollow\"><u>Flutter. \u041c\u043d\u043e\u0433\u043e<\/u><\/a>.\u00a0<\/p>\n<p>\u041c\u044b \u0443\u0436\u0435 \u043a\u0430\u0441\u0430\u043b\u0438\u0441\u044c <a href=\"https:\/\/t.me\/flutter_amiga\/178\" rel=\"noopener noreferrer nofollow\"><u>\u0442\u0435\u043c\u044b Sliver&#8217;\u043e\u0432<\/u><\/a>, \u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443. \u0412 \u043d\u0430\u0448\u0435\u0439 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u043d\u0430\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f \u0441\u0435\u0442\u0438 \u043f\u0435\u043a\u0430\u0440\u0435\u043d, \u0433\u0434\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e Sliver&#8217;\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u044d\u0442\u0438 \u0442\u0435\u0445\u043d\u0438\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Stack \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0442\u0438\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c DraggableScrollableSheet:<\/p>\n<pre><code>Stack(  children: [    Padding(      padding: const EdgeInsets.fromLTRB(16, 8, 16, 0),      child: CreateProfileCard(state.pageState),    ),    DraggableScrollableSheet(      initialChildSize: 379 \/ 640,      minChildSize: 379 \/ 640,      maxChildSize: 1,      builder: (context, scrollController) {        return Container(          decoration: BoxDecoration(            color: AppColors.white,            borderRadius: const BorderRadius.vertical(top: Radius.circular(30)),          ),          padding: const EdgeInsets.fromLTRB(16, 6, 16, 0),          child: Column(            children: [              Padding(                padding: const EdgeInsets.only(bottom: 15.0),                child: SvgPicture.asset(AppConstants.icons + 'holder.svg'),              ),              Expanded(                child: CustomScrollView(                  controller: scrollController,                  slivers: [...],                ),              ),            ],          ),        );      },    ),<\/code><\/pre>\n<p>\u0412 DraggableScrollableSheet \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0441\u043a\u0440\u043e\u043b\u043b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0432 \u043d\u0430\u0448 CustomScroollView \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Sliver\u2019\u043e\u0432:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 UI \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c SliverToBoxAdapter:<\/p>\n<pre><code>SliverToBoxAdapter(  child: Padding(    padding: const EdgeInsets.only(top: 8.0),    child: MainBanners(state.pageState),  ), ), \/\/ \u044d\u043b\u0435\u043c\u0435\u043d\u0442 CustomScrollView  class MainBanners extends StatelessWidget {  const MainBanners(this.pageState, {Key? key}) : super(key: key);   final MainPageState pageState;   @override  Widget build(BuildContext context) {    return Container(      height: 120,      child: Column(        mainAxisSize: MainAxisSize.min,        children: [          Expanded(            child: CarouselSlider(              options: CarouselOptions(                autoPlay: true,                height: 88,                viewportFraction: 1.025,              ),              items: List.generate(                5,                (index) => InkWell(                  onTap: () {},                  child: Container(                    width: MediaQuery.of(context).size.width,                    margin: const EdgeInsets.symmetric(horizontal: 5),                    decoration: BoxDecoration(                        borderRadius: const BorderRadius.all(Radius.circular(16)), color: setColor.elementAt(index)),                  ),                ),              ),            ),          ),          Row(            mainAxisAlignment: MainAxisAlignment.center,            children: List.generate(                5,                (index) => InkWell(                      onTap: () {},                      child: Container(                        width: 16.0,                        height: 6.0,                        margin: const EdgeInsets.symmetric(                          vertical: 12.0,                          horizontal: 4.0,                        ),                        decoration: BoxDecoration(                          borderRadius: const BorderRadius.all(Radius.circular(4)),                          color: Theme.of(context).primaryColor.withOpacity(0.5),                        ),                      ),                    )).toList(),          ),        ],      ),    );  } }<\/code><\/pre>\n<pre><code>SliverToBoxAdapter(  child: Padding(    padding: const EdgeInsets.only(top: 28.0, bottom: 8),    child: Row(      mainAxisAlignment: MainAxisAlignment.spaceBetween,      children: [        Text(          '\u041d\u041e\u0412\u0418\u041d\u041a\u0418',          style: Theme.of(context)              .textTheme              .headlineLarge              ?.copyWith(color: AppColors.black),        ),        Row(          children: [            Text(              '\u0432\u0441\u0435',              style: Theme.of(context)                  .textTheme                  .bodyLarge                  ?.copyWith(color: AppColors.black),            ),            const SizedBox(width: 4),            SvgPicture.asset(AppConstants.icons + 'deep_arrow.svg'),          ],        ),      ],    ),  ), ),<\/code><\/pre>\n<p>\u0410 \u0434\u043b\u044f \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c SliverList \u0438 SliverGrid:<\/p>\n<pre><code>SliverGrid.builder(  gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(    crossAxisCount: 2,    childAspectRatio: 160 \/ 208,    crossAxisSpacing: 8,    mainAxisSpacing: 8,  ),  itemCount: 4,  itemBuilder: (context, index) => Container(    padding: const EdgeInsets.only(bottom: 8),    decoration: const BoxDecoration(      borderRadius: BorderRadius.all(Radius.circular(8)),      color: AppColors.white,      boxShadow: [        BoxShadow(          color: Color.fromRGBO(0, 0, 0, 0.1),          blurRadius: 6,        ),        BoxShadow(          color: Color.fromRGBO(0, 0, 0, 0.15),          blurRadius: 2,        ),      ],    ),    child: Column(      children: [        Container(          height: 120,          decoration: const BoxDecoration(            color: Colors.red,            borderRadius: BorderRadius.all(Radius.circular(8)),          ),        )      ],    ),  ), ),<\/code><\/pre>\n<p>Slivers \u0432\u043e Flutter \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0433\u0438\u0431\u043a\u0438\u0445 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445 UI. \u041e\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043b\u0435\u0433\u043a\u043e \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043e\u0431\u044a\u0435\u043c\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u043a\u0435\u0442\u044b.\u00a0\u00a0<\/p>\n<p>\u0421\u043c\u0435\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 Slivers \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f UI\/UX \u0432 \u0432\u0430\u0448\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043d\u0430 Flutter, \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u043a\u0430\u0436\u0443\u0442 \u0432\u0430\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e!<\/p>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0430\u0448 \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u0438\u0439 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b <a href=\"https:\/\/t.me\/+YDX3yq4hGLY2NGMy\" rel=\"noopener noreferrer nofollow\"><u>Flutter. \u041c\u043d\u043e\u0433\u043e<\/u><\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0432\u0435\u0434\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e \u0441\u0432\u043e\u0439 \u043b\u0438\u0447\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0438 \u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0441\u043e\u0432\u0435\u0442\u0430\u043c\u0438 \u043e\u0442 \u0441\u043e\u0444\u0442-\u0441\u043a\u0438\u043b\u043b\u043e\u0432 \u0434\u043e \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u043d\u0430\u043d\u0438\u0439. \u0411\u0443\u0434\u0435\u043c \u0440\u0430\u0434\u044b \u043d\u043e\u0432\u044b\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/794510\/\"> https:\/\/habr.com\/ru\/articles\/794510\/<\/a><br \/><\/br><\/br><\/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-368521","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368521","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=368521"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368521\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=368521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=368521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=368521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}