Skip to main content

nativemind_core 1.7.0 copy "nativemind_core: ^1.7.0" to clipboard
nativemind_core: ^1.7.0 copied to clipboard

The light base of the NativeMind widgets: design tokens, theme, editions from configuration, primitives, PIN keypad, navigation, charts, l10n and icons. No plugins.

example/example.dart

// A themed app from an edition (configuration) with the handmade action buttons (and their 1.6.0 states) and a success dialog.
// written by Claude Code (generated by Claude Code), 2026-11-16; pub.dev example (pana "Package has an example")
import 'package:flutter/material.dart';
import 'package:nativemind_core/nativemind_core.dart';

// written by Claude Code (generated by Claude Code), 2026-11-16; pub.dev example (pana "Package has an example")
void main() {
  // An app usually calls current() and selects the edition with --dart-define=NM_EDITION=net.example.blue.
  final edition = const NmConfigs({
    'android/net.example.blue': {'title': 'Example', 'palette': 'blue'},
  }).current(id: 'net.example.blue');
  runApp(
    MaterialApp(
      theme: edition.theme.toThemeData(Brightness.light),
      localizationsDelegates: const [NmL10n.delegate],
      home: Scaffold(
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              NmWideActionButtonNoIcon(() => nmSuccessDialog('Saved'), 'Save'),
              // Optional states (1.6.0): theme colours, intrinsic width, tooltip, busy, disabled.
              NmMediumActionButton(() {}, 'Themed', themed: true, natural: true, tooltip: 'Colours of the app theme'),
              NmMediumActionButton(() {}, 'Sending', busy: true),
              NmMediumActionButtonRed(() {}, 'Delete', disabled: true, tooltip: 'Nothing selected'),
            ],
          ),
        ),
      ),
    ),
  );
}
0
likes
0
points
510
downloads

Publisher

verified publisherframework.nativemind.net

Weekly Downloads

The light base of the NativeMind widgets: design tokens, theme, editions from configuration, primitives, PIN keypad, navigation, charts, l10n and icons. No plugins.

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_localizations, flutter_svg, intl

More

Packages that depend on nativemind_core