adspostx 2.0.8
adspostx: ^2.0.8 copied to clipboard
A Flutter package for adspostx. please visit https://ajithvgiri.gitbook.io/adpostx/v/flutter-sdk for more information .
example/lib/main.dart
import 'package:adspostx/adspostx.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: TestPage(),
);
}
}
class TestPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Test")),
body: Container(
child: Center(
child: ElevatedButton(
onPressed: () {
Adspostx.show(context: context);
},
child: Text("Open Dialog"),
),
),
),
);
}
}