Skip to main content

colveor 0.1.0 copy "colveor: ^0.1.0" to clipboard
colveor: ^0.1.0 copied to clipboard

Flutter foundation for production apps: authentication, Dio networking with DPoP, push notifications and bootstrap, built on colveor_ui.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:colveor/colveor.dart';

import 'package:example/config/app_config.dart';
import 'package:example/routes/app_routes.dart';
import 'package:example/theme/app_theme.dart';

@pragma('vm:entry-point')
Future<void> _onBackgroundMessage(RemoteMessage message) async {
  // FxMessaging.onBackgroundMessage(message);
}

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await VoBootstrap.initialize(
    config: AppConfig(),
    backgroundMessageHandler: _onBackgroundMessage,
  );

  runApp(
    ColveorApp(
      config: AppConfig(),
      appRoutes: appRoutes,
      builder: (context, colveor) => App(colveor: colveor),
    )
  );
}

class App extends StatelessWidget {
  final ColveorRef colveor;

  const App({super.key, required this.colveor});

  AppTheme get _theme => const AppTheme();

  @override
  Widget build(BuildContext context) => MaterialApp.router(
    title: AppConfig().appName,
    theme: _theme.light,
    darkTheme: _theme.dark,
    themeMode: colveor.themeMode,
    routerConfig: colveor.router,
  );
}
0
likes
140
points
82
downloads

Documentation

API reference

Publisher

verified publisherskyapplabs.com

Weekly Downloads

Flutter foundation for production apps: authentication, Dio networking with DPoP, push notifications and bootstrap, built on colveor_ui.

Repository (GitHub)

License

MIT (license)

Dependencies

colveor_ui, crypto, device_info_plus, dio, firebase_core, firebase_messaging, flutter, flutter_riverpod, flutter_secure_storage, freezed_annotation, jose, json_annotation, jwt_decoder, riverpod_annotation, uuid

More

Packages that depend on colveor