folivora_sizer 0.0.5 folivora_sizer: ^0.0.5 copied to clipboard
A Useful Sizer
import 'package:flutter/material.dart';
import 'root_page.dart';
import 'theme_view_model.dart';
void main() {
runApp(ThemeViewModel(child: const MyApp()));
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return ValueListenableBuilder(
valueListenable: ThemeViewModel.of(context)!.theme,
builder: (BuildContext context, ThemeData themeData, child) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Folivora Package Test App',
theme: themeData,
home: const RootPage(),
);
},
);
}
}