firebase_app_indexing 0.1.0
firebase_app_indexing: ^0.1.0 copied to clipboard
Firebase app indexing plugin,
import 'package:flutter/material.dart';
import 'package:firebase_app_indexing/firebase_app_indexing.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
String url = 'https://wiseminds.cc';
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(width: 600),
RaisedButton(
onPressed: () => FirebaseAppIndexing.start('Home', url),
child: Text('Start')),
RaisedButton(
onPressed: () => FirebaseAppIndexing.stop('Home', url),
child: Text('Stop')),
],
),
),
);
}
}