stacked 3.0.1 copy "stacked: ^3.0.1" to clipboard
stacked: ^3.0.1 copied to clipboard

An architecture and widgets for an MVVM inspired architecture in Flutter. It provides common functionalities required to build a large application in a understandable manner.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:stacked/stacked_annotations.dart';
import 'package:stacked_services/stacked_services.dart';

import 'app/app.locator.dart';
import 'app/app.router.dart';

void main() {
  setupExampleLocator(environment: Environment.dev);
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      navigatorKey: StackedService.navigatorKey,
      onGenerateRoute: StackedRouter().onGenerateRoute,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
    );
  }
}
1440
likes
0
pub points
98%
popularity

Publisher

verified publisherfilledstacks.com

An architecture and widgets for an MVVM inspired architecture in Flutter. It provides common functionalities required to build a large application in a understandable manner.

Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

ko-fi.com

License

unknown (license)

Dependencies

collection, flutter, get_it, meta, provider, stacked_core, universal_io

More

Packages that depend on stacked