Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Yako shared files

Files that every Yako Flutter package uses.

tiles/

The preview tiles in the More from Yako grid at the bottom of each package README. Each one is recorded from the package's real widget, so it shows exactly what the package does.

Package Tile
settings_ui settings_ui.gif
badges badges.gif
yako_celebrations yako_celebrations.webp
status_alert status_alert.gif
full_screen_menu full_screen_menu.gif
yako_theme_switch yako_theme_switch.gif
diagonal_decoration diagonal_decoration.png

The READMEs load the tiles straight from this repo, so a new tile here shows up in every README at once.

Remake the tiles

tools/tile_studio renders each package's real widget in a headless Flutter test, frame by frame, from the packages' GitHub sources. It needs macOS (it uses the system San Francisco font for the iOS-style tiles), Flutter, ffmpeg and img2webp (brew install ffmpeg webp).

tools/tile_studio/make_tiles.sh

The scenes are in tools/tile_studio/test/tiles_test.dart. Tiles are 480×480: GIFs, a PNG for the still one, and an animated WebP for yako_celebrations, whose particles would make a GIF too big.

Add or update the grid in a README

python3 tools/more_from_yako.py settings_ui path/to/flutter-settings-ui/README.md

It writes the grid of every other package between the <!-- more-from-yako:start --> and <!-- more-from-yako:end --> markers. To add a package, add a tile and a row to PACKAGES in the script, then run it for each README.

About

Shared files for the Yako Flutter packages: README preview tiles and the tool that records them.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages