|
@@ -5,6 +5,8 @@ import 'package:flutter/material.dart' hide ConnectionState;
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
import 'package:get/get.dart';
|
|
import 'package:get/get.dart';
|
|
|
import 'package:nomo/app/constants/iconfont/iconfont.dart';
|
|
import 'package:nomo/app/constants/iconfont/iconfont.dart';
|
|
|
|
|
+import 'package:nomo/app/extensions/widget_extension.dart';
|
|
|
|
|
+import 'package:nomo/utils/misc.dart';
|
|
|
import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart';
|
|
import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart';
|
|
|
import '../../../../config/theme/dark_theme_colors.dart';
|
|
import '../../../../config/theme/dark_theme_colors.dart';
|
|
|
import '../../../../config/theme/theme_extensions/theme_extension.dart';
|
|
import '../../../../config/theme/theme_extensions/theme_extension.dart';
|
|
@@ -34,7 +36,9 @@ class HomeView extends BaseView<HomeController> {
|
|
|
Widget _buildCustomScrollView() {
|
|
Widget _buildCustomScrollView() {
|
|
|
return SafeArea(
|
|
return SafeArea(
|
|
|
child: Padding(
|
|
child: Padding(
|
|
|
- padding: EdgeInsets.symmetric(horizontal: 14.w),
|
|
|
|
|
|
|
+ padding: isDesktop
|
|
|
|
|
+ ? EdgeInsets.all(14.w)
|
|
|
|
|
+ : EdgeInsets.symmetric(horizontal: 14.w),
|
|
|
child: Column(
|
|
child: Column(
|
|
|
children: [
|
|
children: [
|
|
|
_buildAppBar(),
|
|
_buildAppBar(),
|
|
@@ -387,7 +391,7 @@ class HomeView extends BaseView<HomeController> {
|
|
|
controller.collapseRecentLocations();
|
|
controller.collapseRecentLocations();
|
|
|
controller.setDefaultAutoConnect();
|
|
controller.setDefaultAutoConnect();
|
|
|
},
|
|
},
|
|
|
- ),
|
|
|
|
|
|
|
+ ).withClickCursor(isDesktop),
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -457,7 +461,7 @@ class HomeView extends BaseView<HomeController> {
|
|
|
),
|
|
),
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
|
- );
|
|
|
|
|
|
|
+ ).withClickCursor(isDesktop);
|
|
|
}),
|
|
}),
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
@@ -621,7 +625,7 @@ class HomeView extends BaseView<HomeController> {
|
|
|
}),
|
|
}),
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
|
- );
|
|
|
|
|
|
|
+ ).withClickCursor(isDesktop);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|