Dashhost Flutter provides components for generating SEO in flutter web apps that Dashhost can interpret and serve to bots and crawlers.
Features
- Drop-in replacement for
Textwidget usingDashText - Wrap widgets in
DashBoxto provide semantic layout - Include
DashMetaTagwidgets to inject metatags to your page.
Usage
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: DashText("Dashhost Coded Example", dashTag: "h1")),
body: Align(
alignment: Alignment.center,s
child: Column(
children: [
DashMetaTag.title("Dashhost Coded Example"),
DashMetaTag.description("Welcome to the Dashhost Flutter Coded Example"),
DashText("Welcome to the Dashhost Flutter Coded Example", dashTag: "h2"),
],
),
),
);
}
}
Additional information
Dashhost Flutter also includes Dev Tools to preview how your page will be interpretted. You can enable them in the run function of your main.dart
void main() {
DashDevTools().enable();
runApp(const MyApp());
}