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

A Flutter plugin to set the current window title on desktop platforms (Windows and macOS).

example/lib/main.dart

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

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _setWindowTitlePlugin = SetWindowTitle();
  var _counter = 1;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Plugin example app')),
        body: Center(
          child: ElevatedButton(
            onPressed: () {
              _setWindowTitlePlugin.setTitle(
                "New Window Title δΈ­ζ–‡ πŸ˜Šβ€οΈπŸ˜’πŸ˜Άβ€πŸŒ«οΈ $_counter",
              );
              setState(() {
                _counter++;
              });
            },
            child: const Text('Set Window Title'),
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
153
downloads

Documentation

API reference

Publisher

verified publisherflutter-cavalry.com

Weekly Downloads

A Flutter plugin to set the current window title on desktop platforms (Windows and macOS).

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on set_window_title

Packages that implement set_window_title