peachpluginsampletest 1.0.9 peachpluginsampletest: ^1.0.9 copied to clipboard
A sample Flutter plugin for displaying dialog boxes.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:peachpluginsampletest/peachpluginsampletest.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown';
final _peachpluginsampletestPlugin = Peachpluginsampletest();
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: InkWell(
child: Container(
child: Text('Check',style: TextStyle(color: Colors.white),),
color: Colors.cyan,
),
onTap: (){
print("objectddd");
Peachpluginsampletest.showAlert("title", "message");
},
)
),
),
);
}
}