dart_code_viewer2 was added in conjunction with a new ComponentState class attribute String? codeSample to allow flutterbook contributors to effectively provide code snippets outside of any markdown/documentation they'd like to provide for a given component state
The Component class now has a String? componentMarkdown to allow for component-wide documentation. This should allow stories to have a bit more
A new attribute CodeSampleThemeData? codeSampleTheme has been added to allow teams to customize the theme of the code viewer
Example:
Multi-Theme Support
A new themes argument has been added to Flutterbook to enable teams with 3+ themes to view the app in every theme. This attribute will take priority over the existing theme and darkTheme attributes if it is set.
Example:
Panning updates
Panning a component is now behind its own toggle in the tab bar
This PR introduces/fixes the following:
Docs
ComponentState
class attributeString? codeSample
to allow flutterbook contributors to effectively provide code snippets outside of any markdown/documentation they'd like to provide for a given component stateComponent
class now has aString? componentMarkdown
to allow for component-wide documentation. This should allow stories to have a bit moreCodeSampleThemeData? codeSampleTheme
has been added to allow teams to customize the theme of the code viewerMulti-Theme Support
themes
argument has been added toFlutterbook
to enable teams with 3+ themes to view the app in every theme. This attribute will take priority over the existingtheme
anddarkTheme
attributes if it is set.Panning updates