meta_seo 1.0.4 copy "meta_seo: ^1.0.4" to clipboard
meta_seo: ^1.0.4 copied to clipboard

Meta SEO is package for adding meta data for html document in head tag which meta tags or meta data make search engine optimization for web apps.

example/lib/main.dart

// Developed by Eng Mouaz M AlShahmeh
import 'package:flutter/material.dart';
import 'package:meta_seo/meta_seo.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Meta SEO Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // Define MetaSEO object with optional needed attributes
    MetaSEO meta = MetaSEO(
        author: 'Eng Mouaz M AlShahmeh',
        description: 'Meta SEO Web Example',
        keywords: 'Flutter, Dart, SEO, Meta, Web');

    // add meta seo data for web app
    meta.seoAuthor();
    meta.seoDescription();
    meta.seoKeywords();

    return const Scaffold(
      body: Center(child: Text('Meta SEO Web Example')),
    );
  }
}
117
likes
0
pub points
98%
popularity

Publisher

unverified uploader

Meta SEO is package for adding meta data for html document in head tag which meta tags or meta data make search engine optimization for web apps.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_lints

More

Packages that depend on meta_seo