voxa_core 1.1.0+1 copy "voxa_core: ^1.1.0+1" to clipboard
voxa_core: ^1.1.0+1 copied to clipboard

Voxa is an enterprise-grade Flutter foundation package. It provides a complete design system with dynamic Material 3 theming, type-safe tokens, and a robust networking stack with auto-token refresh. I [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:voxa_core/voxa_core.dart';
import 'example_app/src/features/intro/presentation/screens/splash_screen.dart';

void main() async {
  // 1. Initialize Voxa Foundation (Logging, Theme, DI)
  await VoxaBootstrap.initialize(environment: VoxaEnvironment.development);

  runApp(
    ProviderScope(
      overrides: [
        // 2. Configure Package API Foundation
        apiConfigProvider.overrideWithValue(
          ApiConfig.development(baseUrl: 'https://fakestoreapi.com'),
        ),
      ],
      child: const VoxaStoreApp(),
    ),
  );
}

class VoxaStoreApp extends HookConsumerWidget {
  const VoxaStoreApp({super.key});

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final themeConfig = ref.watch(voxaThemeControllerProvider);

    return DynamicColorBuilder(
      builder: (lightDynamic, darkDynamic) {
        return MaterialApp(
          title: 'Voxa Core Demo',
          debugShowCheckedModeBanner: false,
          // 3. Leverage Package Theme Engine
          theme: VoxaThemeBuilder.buildLight(
            tokens: VoxaTokens.light,
            config: themeConfig,
            colorScheme: themeConfig.colors.useDynamicColor ? lightDynamic : null,
          ),
          darkTheme: VoxaThemeBuilder.buildDark(
            tokens: VoxaTokens.dark,
            config: themeConfig,
            colorScheme: themeConfig.colors.useDynamicColor ? darkDynamic : null,
          ),
          themeMode: themeConfig.themeMode,
          home: const VoxaSplashScreen(),
        );
      },
    );
  }
}
0
likes
80
points
3
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Voxa is an enterprise-grade Flutter foundation package. It provides a complete design system with dynamic Material 3 theming, type-safe tokens, and a robust networking stack with auto-token refresh. Includes token-aware UI components, fluid animations, and a one-line bootstrap to build production-ready apps with elite architecture.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

adaptive_theme, animated_theme_switcher, ansicolor, connectivity_plus, dio, dynamic_color, flex_color_scheme, flutter, flutter_animate, flutter_hooks, freezed_annotation, go_router, google_fonts, hooks_riverpod, intl, json_annotation, logger, pretty_dio_logger, responsive_framework, retrofit, riverpod_annotation, shared_preferences, talker, talker_dio_logger, talker_flutter, theme_tailor_annotation, uuid

More

Packages that depend on voxa_core