fix : some ui bug
This commit is contained in:
@@ -23,34 +23,14 @@ Future<void> main() async {
|
||||
Get.put<AuthRouteResolver>(AppAuthRouteResolver());
|
||||
Get.put(AuthMiddleware());
|
||||
|
||||
runApp(MyApp());
|
||||
//runApp(MyApp());
|
||||
|
||||
// runApp(DevicePreview(builder: (context) => ForDevicePreview(),));
|
||||
runApp(DevicePreview(builder: (context) => ForDevicePreview(),));
|
||||
}
|
||||
|
||||
/*class ForDevicePreview extends StatelessWidget {
|
||||
class ForDevicePreview extends StatelessWidget {
|
||||
const ForDevicePreview({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GetMaterialApp(
|
||||
useInheritedMediaQuery: true,
|
||||
locale: DevicePreview.locale(context),
|
||||
builder: DevicePreview.appBuilder,
|
||||
title: 'رصدیار',
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: AppColor.blueNormal),
|
||||
),
|
||||
initialRoute: AppPages.initRoutes,
|
||||
initialBinding: BindingsBuilder.put(() => UserService()),
|
||||
getPages: AppPages.pages,
|
||||
);
|
||||
}
|
||||
}*/
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ScreenUtilInit(
|
||||
@@ -79,3 +59,35 @@ class MyApp extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/*class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ScreenUtilInit(
|
||||
designSize: const Size(412, 917),
|
||||
minTextAdapt: true,
|
||||
splitScreenMode: true,
|
||||
child: GetMaterialApp(
|
||||
title: 'رصدیار',
|
||||
theme: ThemeData(
|
||||
fontFamily: 'yekan',
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: AppColor.blueNormal),
|
||||
),
|
||||
initialRoute: AppPages.initRoutes,
|
||||
getPages: AppPages.pages,
|
||||
locale: const Locale("fa", "IR"),
|
||||
supportedLocales: const [Locale("fa", "IR")],
|
||||
navigatorObservers: [CustomNavigationObserver()],
|
||||
localizationsDelegates: [
|
||||
PersianMaterialLocalizations.delegate,
|
||||
PersianCupertinoLocalizations.delegate,
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
GlobalCupertinoLocalizations.delegate,
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}*/
|
||||
|
||||
@@ -28,11 +28,13 @@ class ModulesPage extends GetView<ModulesLogic> {
|
||||
Positioned.fill(
|
||||
child: Column(
|
||||
children: [
|
||||
SizedBox(height: 24.h),
|
||||
SizedBox(height: 12.h),
|
||||
SliderWidget(widgetTag: "up"),
|
||||
|
||||
Expanded(
|
||||
SizedBox(
|
||||
height: 244.h,
|
||||
child: GridView.builder(
|
||||
|
||||
padding: EdgeInsets.symmetric(horizontal: 25.w, vertical: 24.h),
|
||||
itemBuilder: (context, index) {
|
||||
final module = controller.moduleList[index];
|
||||
@@ -47,10 +49,10 @@ class ModulesPage extends GetView<ModulesLogic> {
|
||||
},
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: 3,
|
||||
mainAxisSpacing: 24.h,
|
||||
mainAxisSpacing: 22.h,
|
||||
crossAxisSpacing: 16.w,
|
||||
),
|
||||
physics: BouncingScrollPhysics(),
|
||||
physics: NeverScrollableScrollPhysics(),
|
||||
itemCount: controller.moduleList.length,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user