release_notes_dialog 1.0.2 copy "release_notes_dialog: ^1.0.2" to clipboard
release_notes_dialog: ^1.0.2 copied to clipboard

outdated

An easy to use release notes dialog. Customizable to fit your apps design.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:release_notes_dialog/release_notes_dialog.dart';

void main() {
  runApp(ExampleApp());
}

class ExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Release Notes Dialog Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: ExamplePage(),
    );
  }
}

class ExamplePage extends StatelessWidget {
  final List<Release> releases = [
  Release(
    "1.1.0",
    [
      ReleaseSublist(
        name: "Features",
        changes: [
          "Added new feature 1",
          "Added new feature 2",
        ],
      ),
      ReleaseSublist(
        name: "Fixes",
        changes: [
          "Fixed bug 1",
          "Fixed bug 2",
          "Fixed bug 3",
        ],
      ),
    ],
  ),
  Release(
    "1.0.0",
    [
      ReleaseSublist(
        name: "Release!",
      ),
    ],
  ),
];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Release notes dialog example'),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            ReleaseNotesDialog(
              context,
              titleTextStyle:
                  TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
              releases: releases,
            )..show();
          },
          child: Text("Show Dialog"),
        ),
      ),
    );
  }
}
13
likes
0
pub points
69%
popularity

Publisher

verified publishernightknight.dev

An easy to use release notes dialog. Customizable to fit your apps design.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, term_glyph

More

Packages that depend on release_notes_dialog