horusvision 1.0.0 copy "horusvision: ^1.0.0" to clipboard
horusvision: ^1.0.0 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/presentation/features/horusvision.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  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(
      routerConfig: _router,
      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(),
    );
  }
}
1
likes
45
points
74
downloads

Publisher

unverified uploader

Weekly Downloads

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

Apache-2.0 (license)

Dependencies

dio, flutter, flutter_localizations, flutter_riverpod, freezed, freezed_annotation, get_it, go_router, intl, json_annotation, lottie, pretty_dio_logger, retrofit, riverpod_annotation, shared_preferences

More

Packages that depend on horusvision