adspostx 3.0.2 adspostx: ^3.0.2 copied to clipboard
The Adspostx Flutter package enables you to integrate Adspostx into your native Android mobile apps to drive more value from—and for—your customers. The SDK is built to be lightweight, secure, and sim [...]
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"),
),
),
),
);
}
}