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

Package that provide a way to modularize features through a service locator.

example/lib/main.dart

import 'package:fluent_sdk/fluent_sdk.dart';
import 'package:fluient_sdk_example/feature/home/home_api.dart';
import 'package:fluient_sdk_example/feature/home/home_module.dart';
import 'package:flutter/material.dart';

void main() {
  Fluent.build([
    HomeModule(),
  ]);

  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    // Get home page from home module
    final homePage = Fluent.get<HomeApi>().getHomePage();

    return MaterialApp(
      home: Scaffold(
        body: homePage,
      ),
    );
  }
}
0
likes
0
points
389
downloads

Publisher

unverified uploader

Weekly Downloads

Package that provide a way to modularize features through a service locator.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, get_it

More

Packages that depend on fluent_sdk