fuck_utils 0.0.54 fuck_utils: ^0.0.54 copied to clipboard
Awesome flutter util code.
import 'package:example/controllers/main_controller.dart';
import 'package:example/pages/main_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return ScreenUtilInit(
designSize: const Size(360, 690),
builder: (_ , child) {
return GetMaterialApp(
title: 'FuckUtils Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: false,
),
builder: (context, widget) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
child: widget!,
);
},
onInit: (){
Get.put(MainController());
},
home: const MainPage(),
);
},
);
}
}