flutterappziloofferwall 0.0.1
flutterappziloofferwall: ^0.0.1 copied to clipboard
Non-official flutter plugin for Appzilo Offer Wall
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:flutterappziloofferwall/flutterappziloofferwall.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown';
@override
void initState() {
super.initState();
AppziloOfferwall().init(appKey: 'yourappkey', userId: 'youruserid');
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: RaisedButton(child: Text("Appzilo"),onPressed: () => AppziloOfferwall().show(),)
),
),
);
}
}