flutter_sheet 3.0.0 copy "flutter_sheet: ^3.0.0" to clipboard
flutter_sheet: ^3.0.0 copied to clipboard

Easily change the definition (such as theme, configuration,...) for the application

example/lib/main.dart

import 'package:example/providers/providers_app.dart';
import 'package:example/stylesheet/app_style.dart';
import 'package:example/text/app_text.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_sheet/flutter_sheet.dart';

import 'collections/collections_app.dart';

void main() {
  Sheet.setup(hotReload: kDebugMode);
  Sheet.registerLazyCollection<AppStyle>({
    'default': () => AppStyle(),
    'dart': () => AppDartStyle(),
  });
  Sheet.registerLazyCollection<AppText>({
    'default': () => const AppText(),
    'vi': () => const AppTextVi(),
  });
  runApp(const ProvidersApp());
  // runApp(const CollectionsApp());
}
0
likes
140
points
89
downloads

Publisher

unverified uploader

Weekly Downloads

Easily change the definition (such as theme, configuration,...) for the application

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

copy_with_extension, flutter, meta, provider

More

Packages that depend on flutter_sheet