horusvision 0.0.4 copy "horusvision: ^0.0.4" to clipboard
horusvision: ^0.0.4 copied to clipboard

The new era for show views, with that package you can show to your users any place of concert or airplane plane

example/lib/main.dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:horusvision/app/di/di.dart' as horus_vision_di;
import 'package:horusvision/presentation/features/horusvision.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await horus_vision_di.initDi();
  runApp(MyApp());
}

List<GoRoute> appRoutes = [
  GoRoute(
    path: '/',
    builder: (context, state) => const MyHomePage(title: 'Demo Horus Vision'),
    routes: const [],
  ),
];

class MyApp extends StatelessWidget {
  MyApp({super.key});

  final GoRouter _router = GoRouter(
    debugLogDiagnostics: kDebugMode,
    routes: appRoutes,
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routeInformationProvider: _router.routeInformationProvider,
      routeInformationParser: _router.routeInformationParser,
      routerDelegate: _router.routerDelegate,
      title: 'Example app Horus Vision',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSwatch(
          primarySwatch: Colors.red,
          brightness: Brightness.dark,
        ),
        useMaterial3: true,
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Theme.of(context).colorScheme.onPrimaryContainer,
      appBar: AppBar(
        title: Text(title),
      ),
      body: const HorusVision(),
    );
  }
}
0
likes
0
pub points
16%
popularity

Publisher

unverified uploader

The new era for show views, with that package you can show to your users any place of concert or airplane plane

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, flutter_bloc, flutter_localizations, freezed, freezed_annotation, get_it, go_router, intl, json_annotation, lottie, retrofit

More

Packages that depend on horusvision