Skip to content

Commit

Permalink
style :: 파일 구조 잡기
Browse files Browse the repository at this point in the history
  • Loading branch information
withJihyuk committed Jan 11, 2025
1 parent 1173529 commit 0192897
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 3 deletions.
11 changes: 11 additions & 0 deletions lib/view/store/store_info_bottom.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
part of 'store_page.dart';

class _StoreInfoBottom extends StatelessWidget {
// ignore: unused_element
const _StoreInfoBottom({super.key});

@override
Widget build(BuildContext context) {
return Text("");
}
}
70 changes: 70 additions & 0 deletions lib/view/store/store_info_header.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
part of 'store_page.dart';

class _StoreInfoHeader extends StatelessWidget {
// ignore: unused_element
const _StoreInfoHeader({super.key});

@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Stack(
alignment: Alignment.bottomLeft,
clipBehavior: Clip.none,
children: [
Image.asset(
"assets/images/store_info_header_example.png",
width: 390.w,
height: 235.h,
fit: BoxFit.cover,
),
Positioned(
bottom: -25.h,
child: Container(
width: 390.w,
height: 50.h,
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(15.w),
topRight: Radius.circular(15.w)),
color: Colors.white),
)),
Positioned(
left: 25.w,
bottom: -25.h,
child: Container(
width: 100.w,
height: 100.h,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(25.w),
image: DecorationImage(
image: AssetImage(
"assets/images/store_info_logo_example.png"))),
))
],
),
SizedBox(
height: 30.h,
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 25.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"힘쎈드위치",
style: AppTextStyle.heading2Bold,
),
Text(
"광주광역시 동구 지산로 38",
style: AppTextStyle.body2Medium
.copyWith(color: GlobalMainGrey.grey700),
)
],
))
],
);
}
}
11 changes: 11 additions & 0 deletions lib/view/store/store_info_middle.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
part of 'store_page.dart';

class _StoreInfoMiddle extends StatelessWidget {
// ignore: unused_element
const _StoreInfoMiddle({super.key});

@override
Widget build(BuildContext context) {
return Text("");
}
}
12 changes: 9 additions & 3 deletions lib/view/store/store_page.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:mayo_flutter/desginSystem/color.dart';
import 'package:mayo_flutter/desginSystem/fontsize.dart';
import 'package:mayo_flutter/view/components/top_bar.dart';

part 'store_scaffold.dart';
part 'store_info_header.dart';
part 'store_info_middle.dart';
part 'store_info_bottom.dart';

class StorePage extends StatelessWidget {
const StorePage({super.key});
Expand All @@ -13,9 +19,9 @@ class StorePage extends StatelessWidget {
title: "가게 이름",
showCarts: false,
),
infoHeader: Text(""),
infoMiddle: Text(""),
infoBottom: Text(""),
infoHeader: _StoreInfoHeader(),
infoMiddle: _StoreInfoMiddle(),
infoBottom: _StoreInfoBottom(),
);
}
}

0 comments on commit 0192897

Please sign in to comment.