flutter_sheet 2.0.0 copy "flutter_sheet: ^2.0.0" to clipboard
flutter_sheet: ^2.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
120
pub points
65%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

copy_with_extension, flutter, meta, provider

More

Packages that depend on flutter_sheet