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

PlatformAndroid

Permite lançar notificações para utilizadores resgistados em base de dados

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';
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 Exception{
      print("Erro");
    }

  }

  @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
130
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Permite lançar notificações para utilizadores resgistados em base de dados

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on push_notificatio_pd