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

Flutter package to read 'CHANGELOG.md' file and display it in the app as a Fluent UI widget.

example/example.md

Examples #

Material example #


import 'package:changelog_widgets_fluent_ui/changelog_widgets_fluent_ui.dart';
import 'package:fluent_ui/fluent_ui.dart';

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


class MyFluentApp extends StatelessWidget {

  const MyFluentApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Fluent UI App',
      home: const FluentView(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return NavigationView(
      content: ScaffoldPage(
        header: scaffoldHeader ??
            PageHeader(
              leading: const _BackButton(),
              title: title ?? const Text(widgetTitle),
            ),
        content: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              Button(
                child: const Text(goToTheScreen),
                onPressed: () {
                  Navigator.push(
                    context,
                    FluentPageRoute(builder: (_) => const ChangelogView()),
                  );
                },
              ),
              const SizedBox.square(dimension: gap),
              Button(
                child: const Text(showTheDialog),
                onPressed: () {
                  showDialog(
                    context: context,
                    builder: (_) => const ChangelogDialog(),
                  );
                },
              ),
            ],
          ),
        ),
      ),
    );
  }
}

1
likes
150
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package to read 'CHANGELOG.md' file and display it in the app as a Fluent UI widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

fluent_ui, flutter, flutter_markdown

More

Packages that depend on changelog_widgets_fluent_ui