push_notificatio_pd 0.0.1 copy "push_notificatio_pd: ^0.0.1" to clipboard
push_notificatio_pd: ^0.0.1 copied to clipboard

outdated

Permite lançar notificações

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:push_notificatio_pd/push_notificatio_pd.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> {




initPlatformState() async {

    try {
      await PushNotificatioPd.notification_push_event();
    } on PlatformException {

    }

  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: ElevatedButton(
              onPressed: ()async{
                await initPlatformState();
              },
              child: Text("Ola")

          ),
        ),
      ),
    );
  }
}
0
likes
0
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Permite lançar notificações

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on push_notificatio_pd