oghref_material 2.1.1 oghref_material: ^2.1.1 copied to clipboard
Material themed widget for generating rich information link from URL.
Material themed rich information link widgets in Flutter #
Providing rich information links in Material themed widgets.
Setup #
Basic #
-
Add dependencies into
pubspec.yaml
:dependencies: oghref_material: ^1.0.0 # Latest version # If required to design your own custom parsers, please also add these dependencies below: oghref_model: ^2.0.1
-
Configurate platforms manifest files
-
Perform initalizations before
runApp
void main() { WidgetsFlutterBinding.ensureinitialized(); OgHrefMaterialBinding.ensureinitialized(); runApp(const App()); }
-
Either implement
OgHrefMaterialCard
orOgHrefMaterialTile
depending your preference by referring to example
Advance #
-
If custom property parser is used, please attach the parser into
MetaFetch
between initalizations andrunApp
:MetaFetch().register(const CustomParser());
Usages #
Please refer to wiki page.