webify library

Flutter Web SEO Toolkit

Make your Flutter Web app visible to search engines with meta tags, structured data (JSON-LD), sitemap generation, social preview cards, and analytics integration.

Quick Start

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  Webify.initialize(
    config: WebifyConfig(
      baseUrl: 'https://myapp.com',
      defaultTitle: 'My App',
      titleTemplate: '%s | My App',
    ),
  );
  runApp(MyApp());
}

Then wrap your pages:

SeoPage(
  title: 'About Us',
  description: 'Learn about our company',
  child: AboutPageContent(),
)

Classes

AggregateRating
Aggregate rating for a product
AnalyticsProvider
Abstract base for analytics providers.
ArticleAuthor
Article author information
ArticlePublisher
Article publisher information
ArticleSchema
Schema.org Article structured data.
A single breadcrumb item.
Schema.org BreadcrumbList structured data.
CanonicalUrl
Manages canonical URL for the current page.
ContactPoint
Schema.org ContactPoint
CustomProvider
A custom analytics provider using callback functions.
CustomSchema
Custom JSON-LD schema for types not covered by built-in schemas.
EventLocation
Event location — physical or virtual
EventOffer
Event ticket/offer info
EventOrganizer
Event organizer
EventPerformer
Event performer
EventSchema
Schema.org Event structured data.
FaqItem
A single FAQ question-answer pair.
FaqSchema
Schema.org FAQPage structured data.
GeoCoordinates
Geographic coordinates
HistoryManager
Manages browser history entries for Flutter Web.
HtmlSanitizer
Sanitizes HTML content to prevent XSS attacks.
HtmlShellGenerator
Generates static HTML shell files for each route.
HtmlShellPage
Configuration for a single HTML shell page
JsonLdSchema
Base class for all JSON-LD structured data schemas.
LocalBusinessSchema
Schema.org LocalBusiness structured data.
MetaTag
Represents a single HTML meta tag.
NoscriptFallback
Manages
NoscriptHeading
A heading entry for noscript content
A link entry for noscript fallback content.
OgTags
Open Graph protocol meta tags configuration.
OpeningHours
Opening hours specification
OrganizationSchema
Schema.org Organization structured data.
PersonSchema
Schema.org Person structured data.
PostalAddress
Schema.org PostalAddress
PrerenderConfig
Configuration for pre-rendering strategies.
ProductOffer
Product offer (price, availability, etc.)
ProductReview
Individual product review
ProductSchema
Schema.org Product structured data.
RendererDetector
Utility to detect and provide information about the Flutter Web renderer.
RobotsMeta
Manages per-page robots meta directives.
RobotsRule
A single rule block in robots.txt
RobotsTxt
Generates robots.txt content for your website.
SchemaGraph
Helper to create a graph of multiple schemas in one JSON-LD block.
SchemaValidator
Validates JSON-LD schemas for common issues at development time.
SeoAuditResult
Result of an SEO audit check
SeoDebugOverlay
Development overlay that shows current SEO state.
SeoHead
Declarative SEO meta tags management widget.
SeoImage
Image widget with SEO-friendly alt text and semantics.
Creates a tappable widget that is semantically marked as a link.
SeoPage
All-in-one SEO page wrapper widget.
SeoRouteObserver
A NavigatorObserver that automatically tracks page views and triggers SEO updates when navigation occurs.
SeoText
Renders text with proper semantics for search engine crawlers.
SeoValidator
Development-time SEO audit tool.
SitemapEntry
A single entry in a sitemap.
SitemapGenerator
Generates XML sitemap files for search engine crawlers.
SitemapIndex
Generates a sitemap index file that references multiple sitemaps.
SitemapReference
A reference to a child sitemap in a sitemap index.
SocialDebugDialog
Shows the social debug panel as a bottom sheet dialog.
SocialDebugPanel
A debug widget that shows how your page will look when shared on various social media platforms.
SocialImageSpec
Recommended image specifications for a social platform
SocialPreview
Manages social media preview cards for various platforms.
TwitterCardConfig
Twitter/X Card meta tags configuration.
UrlUtils
URL utilities for SEO operations.
ValidationIssue
A validation issue found in a schema
Webify
Central controller for all webify SEO operations.
WebifyConfig
Global configuration for webify.
WebsiteSchema
Schema.org WebSite structured data.

Enums

ArticleType
Article type variants
AuditSeverity
Severity level of an audit result
ChangeFrequency
How frequently a page is likely to change.
EventAttendanceMode
Event attendance mode
EventStatus
Event status
IssueSeverity
Severity level of a validation issue
ItemCondition
Item condition options
LocalBusinessType
Common local business types
OgType
Open Graph content types
ProductAvailability
Product availability options
RendererType
The type of renderer Flutter is using on web
SocialPlatform
Supported social media platforms
TwitterCardType
Twitter card type variants

Mixins

PageViewTracker<T extends StatefulWidget>
Mixin that automatically tracks page views when a StatefulWidget is shown.
SeoAwarePage<T extends StatefulWidget>
Mixin for StatefulWidget pages that need SEO metadata.