rtbase 1.0.5
rtbase: ^1.0.5 copied to clipboard
RulTech Base Project
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:rtbase/rtbase.dart';
import 'app/routes/app_pages.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Initialize GetStorage
await GetStorage.init();
runApp(
BetterFeedback(
theme: FeedbackThemeData(
background: Colors.grey,
feedbackSheetColor: Colors.white,
activeFeedbackModeColor: Colors.blue,
),
child: GetMaterialApp(
title: "RTBase Example",
debugShowCheckedModeBanner: false,
initialRoute: AppPages.initial,
getPages: AppPages.routes,
theme: ThemeData(primarySwatch: Colors.blue, useMaterial3: true),
builder: (context, child) {
return MediaQuery(
data: MediaQuery.of(
context,
).copyWith(textScaler: const TextScaler.linear(1.0)),
child: SafeArea(
top: false, // Set globally here
bottom: true,
child: child!,
),
);
},
),
),
);
}