nano_core 1.0.6 copy "nano_core: ^1.0.6" to clipboard
nano_core: ^1.0.6 copied to clipboard

A lightweight reactive architecture framework and design system toolkit for Flutter multiplatform applications.

example/lib/main.dart

/// Complete modular example application demonstrating Nano Core architecture.
///
/// For the full source code structure (Controllers, Pages, Widgets), visit:
/// https://github.com/durvalperipato/nano-core/tree/main/example
library;

import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:nano_core/nano_core.dart';
import 'package:nano_core_example/l10n/generated/app_localizations.dart';
import 'app/core/injections/app_injections.dart';
import 'app/core/routes/app_routes.dart';
import 'app/core/theme/app_theme.dart';

void main() {
  // Global structured logging & telemetry configuration
  NanoLogger.init(
    filter: NanoEnvironment.isDevelopment
        ? const NanoLogFilter.all()
        : const NanoLogFilter.onlyErrors(),
  );

  // Initialize global core injections (HTTP client, global services, etc.)
  AppInjections().initScope();

  runApp(const NanoCoreExampleApp());
}

/// Main entry widget for the Nano Core showcase application.
class NanoCoreExampleApp extends StatelessWidget {
  /// Creates a [NanoCoreExampleApp] widget.
  const NanoCoreExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return NanoApp(
      title: 'Nano Core Showcase',
      debugShowCheckedModeBanner: false,
      router: appRouter,
      theme: AppTheme.darkTheme,
      localizationsDelegates: const [
        AppLocalizations.delegate,
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
      ],
      supportedLocales: const [Locale('en'), Locale('pt')],
    );
  }
}
5
likes
160
points
1.02k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight reactive architecture framework and design system toolkit for Flutter multiplatform applications.

Homepage
Repository (GitHub)
View/report issues

Topics

#architecture #state-management #design-system #mcp #ai

License

MIT (license)

Dependencies

cupertino_icons, flutter, get_it

More

Packages that depend on nano_core

Packages that implement nano_core