google / flutter-desktop-embedding

Experimental plugins for Flutter for Desktop
Apache License 2.0
7.1k stars 604 forks source link

Replace testbed/ with plugin examples #913

Closed stuartmorgan closed 1 year ago

stuartmorgan commented 1 year ago

The testbed/ directory is a relic of a much earlier stage of desktop development, when maintaining apps was cumbersome (because they had to be recreated from scratch on a regular basis, before the template stabilized) and it was useful to have a desktop-enabled example handy for basic functionality like scrolling and typing that were still being implemented.

This removes testbed/, and replaces it with standard in-package examples for the two remaining plugins (the other purpose of testbed). Each is created with flutter create -t plugin . with the following changes:

Having the standard example structure will make the plugins easier to maintain when we do need to touch them, and easier for people to find out how to use.

Tangential change:

stuartmorgan commented 1 year ago

This looks like a huge review, but other than the Dart files everything in the new example/ directories (which is almost everything) is just boilerplate created by flutter create.