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

A simple flutter package designed to display toast notifications in Windows applications.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Windows Toast Example',
      home: ShowToast(),
    );
  }
}

class ShowToast extends StatelessWidget {
  const ShowToast({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Windows Toast Example'),
      ),
      body: Center(
          child: ElevatedButton(
        onPressed: () {
          WindowsToast.show(
            'Hello, Windows Toast!',
            context,
            30,
            textStyle: const TextStyle(
              color: Colors.white,
            ),
          );
        },
        child: const Text('Show Toast'),
      )),
    );
  }
}
1
likes
150
pub points
44%
popularity

Publisher

verified publisherayimenlatheef.online

A simple flutter package designed to display toast notifications in Windows applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on windows_toast