flutter_platform_component 4.0.3 copy "flutter_platform_component: ^4.0.3" to clipboard
flutter_platform_component: ^4.0.3 copied to clipboard

Ready-made inherited component base using ready-made abstractions for quick use and decomposed by platform.

example/lib/main.dart

import 'package:flutter_platform_component/flutter_platform_component.dart';
import 'package:example/application/widget/main/main_screen.dart';
import 'package:example/application/navigation_controller.dart';
import 'package:flutter/material.dart';

void main() {
  final INavigationController navigationController = NavigationController();

  runApp(
    FlutterPlatformComponent(
      child: Application(
        navigationController: navigationController,
      ),
    ),
  );
}

class Application extends StatelessWidget {
  const Application({
    super.key,
    required this.navigationController,
  });

  final INavigationController navigationController;

  @override
  Widget build(
    BuildContext context,
  ) =>
      FPCApp(
        navigatorKey: this.navigationController.navigatorKey,
        onGenerateRoute: this.navigationController.onGenerateRoute,
        onGenerateInitialRoutes: (
          String route,
        ) =>
            [
          FPCPageRoute.fromContext(
            context,
            child: const MainScreen(),
          ),
        ],
      );
}
14
likes
70
points
108
downloads

Publisher

unverified uploader

Weekly Downloads

Ready-made inherited component base using ready-made abstractions for quick use and decomposed by platform.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

animate_do, animations, badges, dotted_border, flutter, flutter_vibrate, pinput, pull_down_button

More

Packages that depend on flutter_platform_component