mk590901 / flutter_metro_stateless_multitouch

Repository contains project implementing refresh the metro- style widget via flutter BLoC pattern by means flat state machine class.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_metro_mb

Collage via BLoC

Introduction

This project is based on using the https://github.com/letsar/flutter_staggered_grid_view repository. This library allows you to compose various views into one single widget in style, close to the style of MS windows metro. Also additional styles of composing of widgets are also implemented in the library. I decided to take advantage of this project to write an application that not only displays a set of photos from the site https://picsum.photos, but also allows you to update this set either completely or each photo individually.

Brief description of application

I'm not using the whole flutter_staggered_grid_view library. One metro style is enough for me. The rest are of no interest to me. Therefore, I extracted several classes from the project that suit me and added them to my project. I hope that the authors will forgive me such liberties.

The main emphasis was placed on the method of updating the collage. I once again used the BLoB pattern, which is a wrapper for the flat state machine shown below:

metro_style

Unlike the previous project, the "Refreshing" state doesn’t need a special data structure for rendering. This data structure is predefined and contained in the tiles container of the widget described in the MetroPage class (file: metro.dart). Accordingly, event used also doesn't contain a link to the data. Rather, this link is empty. The link to data container is permanent. Each iteration only changes the filename of the image to be rendered in the CustomGridTile element.

App in action

metro_style.mp4

About

Repository contains project implementing refresh the metro- style widget via flutter BLoC pattern by means flat state machine class.


Languages

Language:Dart 96.7%Language:Objective-C 2.9%Language:Java 0.4%