This commit is contained in:
xuhang-x 2024-07-23 16:41:58 +08:00
parent 42d5720b58
commit 6cf8ae4d44
5 changed files with 65 additions and 62 deletions

View File

@ -14,6 +14,7 @@ class CategoryView extends GetView<CategoryController> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
body: Container(
decoration: const BoxDecoration(
image: DecorationImage(

View File

@ -21,20 +21,17 @@ class HomeDrawerView extends StatelessWidget {
fit: BoxFit.cover,
),
),
child: SafeArea(
bottom: false,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(height: MediaQuery.of(context).padding.top + 15.w),
Container(
margin: EdgeInsets.only(left: 16.w),
child: Text(
Text(
"Style classification",
style: TextStyle(
fontSize: 24.sp,
fontWeight: FontWeight.w600,
color: Colors.white),
),
),
10.verticalSpace,
Expanded(
child: MasonryGridView.count(
@ -46,12 +43,12 @@ class HomeDrawerView extends StatelessWidget {
8,
0,
8,
MediaQuery.of(context).padding.bottom + 10,
MediaQuery.of(context).padding.bottom ,
).w,
itemBuilder: (context, index) {
return GestureDetector(
onTap: () => controller
.toCategory(controller.category[index]),
onTap: () =>
controller.toCategory(controller.category[index]),
child: Stack(
alignment: AlignmentDirectional.bottomStart,
children: [
@ -94,6 +91,7 @@ class HomeDrawerView extends StatelessWidget {
],
),
),
),
);
}
}

View File

@ -21,6 +21,7 @@ class LibraryView extends GetView<LibraryController> {
),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
_buildTabBar(),

View File

@ -72,6 +72,7 @@ class RecommendView extends GetView<RecommendController> {
},
),
SafeArea(
bottom: false,
child: Column(
children: [
SearchAppbar(
@ -152,6 +153,7 @@ class RecommendView extends GetView<RecommendController> {
),
),
child: SafeArea(
bottom: false,
child: Column(
children: [
SearchAppbar(

View File

@ -29,6 +29,7 @@ class SearchImageView extends GetView<SearchImageController> {
child: GetBuilder<SearchImageController>(
builder: (controller) => Obx(
() => SafeArea(
bottom: false,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [