Skip to content

Commit

Permalink
Merge branch 'release/0.9.94+126' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ljyo2o9 committed Aug 21, 2024
2 parents 851e695 + f33b00a commit 7609142
Show file tree
Hide file tree
Showing 33 changed files with 106 additions and 16 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ android {
applicationId "info.eunha.maeumgagym_flutter"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 21
minSdkVersion 34//21
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
1 change: 1 addition & 0 deletions lib/component/maeum_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class MaeumButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: onTap,
child: AnimatedContainer(
duration: const Duration(milliseconds: 100),
Expand Down
4 changes: 4 additions & 0 deletions lib/di/di.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ import '../component/pose/presentation/view_model/pose_all/pose_all_bloc.dart';
import '../component/pose/presentation/view_model/pose_machine_state_cubit.dart';
import '../component/pose/presentation/view_model/pose_tab_state_cubit.dart';
import '../domain/purposes/use_case/del_purpose_use_case.dart';
import '../presentation/pickle/view_model/web_view_controller_state_cubit.dart';
import '../presentation/pose/view_model/pose_search/pose_search_state_cubit.dart';
import '../presentation/purpose/view_model/purpose_add_edit/purpose_calender_state_cubit.dart';
import '../presentation/quotes/view_model/quotes_bloc.dart';
Expand Down Expand Up @@ -250,5 +251,8 @@ Future<List<BlocProvider>> di() async {
),
),
BlocProvider<PurposeBloc>(create: (context) => PurposeBloc(getPurposeDetailUseCase: getPurposeDetailUseCase)),

// pickle
BlocProvider<WebViewControllerStateCubit>(create: (context) => WebViewControllerStateCubit()),
];
}
1 change: 1 addition & 0 deletions lib/presentation/home/ui/widget/home_bottom_space.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class HomeBottomSpace extends StatelessWidget {
),
SizedBox(height: 8.h),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
launchUrl(Uri.parse(
"https://info-dsm.notion.site/2a0474e87f754fbe8f53d58f2003ccb2?pvs=4"));
Expand Down
3 changes: 2 additions & 1 deletion lib/presentation/page_manager/ui/view/page_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:maeumgagym_flutter/presentation/empty_view/view/empty_view_screen.dart';
import 'package:maeumgagym_flutter/presentation/home/ui/view/home_screen.dart';
import 'package:maeumgagym_flutter/presentation/pickle/ui/view/pickle_screen.dart';
import 'package:maeumgagym_flutter/presentation/pose/ui/view/pose_main_screen.dart';
import 'package:maeumgagym_flutter/presentation/self_care/ui/view/self_care_screen.dart';

Expand All @@ -20,7 +21,7 @@ class PageManagerScreen extends StatelessWidget {
const HomeScreen(),
const PoseMainScreen(),
const EmptyViewScreen(),
const EmptyViewScreen(),
const PickleScreen(),
const SelfCareScreen(),
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class BottomNavigationItem extends StatelessWidget {
bool isSelected = context.watch<PageManagerStateCubit>().state == clickState;

return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
pageController.animateToPage(
clickState,
Expand All @@ -36,7 +37,8 @@ class BottomNavigationItem extends StatelessWidget {
context.read<PageManagerStateCubit>().changeState(clickState);
},
child: SizedBox(
height: 64,
width: (1.sw / 5).floorToDouble(),
height: 64.h,
child: FittedBox(
fit: BoxFit.scaleDown,
child: Column(
Expand Down
23 changes: 23 additions & 0 deletions lib/presentation/pickle/ui/view/pickle_screen.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:maeumgagym_flutter/presentation/pickle/view_model/web_view_controller_state_cubit.dart';
import 'package:webview_flutter/webview_flutter.dart';

class PickleScreen extends StatelessWidget {
const PickleScreen({super.key});

@override
Widget build(BuildContext context) {
return BlocBuilder<WebViewControllerStateCubit, WebViewController>(
builder: (_, state) {
return Scaffold(
body: SafeArea(
child: WebViewWidget(
controller: state,
),
),
);
},
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:webview_flutter/webview_flutter.dart';

class WebViewControllerStateCubit extends Cubit<WebViewController> {
WebViewControllerStateCubit() : super(
WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..loadRequest(Uri.parse("https://maeumgagym-webview.xquare.app/"))
);
}
1 change: 1 addition & 0 deletions lib/presentation/pose/ui/view/pose_search_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class _PoseSearchScreenState extends State<PoseSearchScreen> {
searchFocusNode: searchFocusNode,
),
body: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => searchFocusNode.unfocus(),
child: const PoseSearchBody(),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class PoseDetailAppBar extends StatelessWidget implements PreferredSizeWidget {

/// 루틴에 추가
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.push(context, AddToRoutineScreen(poseData: poseData)),
child: Container(
decoration: BoxDecoration(
Expand Down
12 changes: 2 additions & 10 deletions lib/presentation/pose/ui/widget/pose_main/pose_main_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,8 @@ class PoseMainAppBar extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center,
children: [
GestureDetector(
onTap: () async {
MaeumNavigator.push(context, const PoseSearchScreen());
// await Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) => const PoseSearchScreen(),
// ),
// );
// ref.read(poseSearchController.notifier).state = '';
},
behavior: HitTestBehavior.opaque,
onTap: () async => MaeumNavigator.push(context, const PoseSearchScreen()),
child: ImageWidget(
image: Images.iconsSearch,
width: 28.w,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ProfileAppBar extends StatelessWidget implements PreferredSizeWidget {
children: [
SizedBox(width: 20.w),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: ImageWidget(image: Images.arrowLeft, width: 28.w),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ProfileQuitDialog extends StatelessWidget {
children: [
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: Container(
height: 48.h,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class ProfileLogOutDialog extends StatelessWidget {
children: [
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: Container(
height: 48.h,
Expand Down
2 changes: 2 additions & 0 deletions lib/presentation/purpose/ui/view/purpose_add_edit_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class _PurposeAddEditScreenState extends State<PurposeAddEditScreen> {
BlocBuilder<PurposeStartCalender, PurposeCalenderModel>(
builder: (_, state) {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
PurposeStartCalender notifier = context.read<PurposeStartCalender>();

Expand Down Expand Up @@ -179,6 +180,7 @@ class _PurposeAddEditScreenState extends State<PurposeAddEditScreen> {
BlocBuilder<PurposeEndCalender, PurposeCalenderModel>(
builder: (_, state) {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
PurposeCalenderStateCubit notifier = context.read<PurposeEndCalender>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class PurposeAppBar extends StatelessWidget implements PreferredSizeWidget {
children: [
SizedBox(width: 20.w),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: ImageWidget(
image: Images.arrowLeft,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class PurposeAddEditAppBar extends StatelessWidget implements PreferredSizeWidge
child: Row(
children: [
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: ImageWidget(
image: Images.arrowLeft,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class _PurposeAddEditCalenderWidgetState extends State<PurposeAddEditCalenderWid
);

return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
widget.saveDate(date: date);
widget.removeCalender();
Expand Down Expand Up @@ -149,6 +150,7 @@ class _PurposeAddEditCalenderWidgetState extends State<PurposeAddEditCalenderWid
children: [
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => widget.removeCalender(),
child: Container(color: Colors.transparent,)
),
Expand Down Expand Up @@ -207,6 +209,7 @@ class _PurposeAddEditCalenderWidgetState extends State<PurposeAddEditCalenderWid
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
if (_currentDateTime.month != 1) {
// page 뒤로가기
Expand All @@ -231,6 +234,7 @@ class _PurposeAddEditCalenderWidgetState extends State<PurposeAddEditCalenderWid
),
),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
if (_currentDateTime.month != 12) {
setState(() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class PurposeDetailAppBar extends StatelessWidget implements PreferredSizeWidget
return const SizedBox.shrink();
} else {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
showModalBottomSheet(
context: context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class AddToRoutineAppBar extends StatelessWidget implements PreferredSizeWidget
title: Padding(
padding: EdgeInsets.only(left: 20.w ),
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: ImageWidget(
image: Images.arrowLeft,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import 'package:maeumgagym_flutter/domain/routines/entity/routine_entity.dart';
import 'package:maeumgagym_flutter/domain/routines/entity/routines_entity.dart';
import 'package:maeumgagym_flutter/presentation/routine/view_model/routines/routines_bloc.dart';
import 'package:maeumgagym_flutter/presentation/routine/view_model/routines/routines_event.dart';
import 'package:maeumgagym_flutter/presentation/routine/view_model/today_routine/today_routine_bloc.dart';
import 'package:maeumgagym_flutter/presentation/routine/view_model/today_routine/today_routine_event.dart';

import '../../../view_model/routines/routines_state.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class RoutineAppBar extends StatelessWidget implements PreferredSizeWidget {
children: [
SizedBox(width: 20.w),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: ImageWidget(
image: Images.arrowLeft,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class RoutineAddEditAppBar extends StatelessWidget implements PreferredSizeWidge
children: [
SizedBox(width: 20.w),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: ImageWidget(
image: Images.arrowLeft,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class RoutineAddEditPoseListWidget extends StatelessWidget {
],
),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => context.read<RoutineAddPoseListStateCubit>().delete(index),
child: ImageWidget(
image: Images.editClose,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class RoutineAddPoseAppBar extends StatelessWidget implements PreferredSizeWidge
children: [
SizedBox(width: 20.w),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: ImageWidget(
image: Images.editClose,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class RoutineDetailAppBar extends StatelessWidget implements PreferredSizeWidget
child: Row(
children: [
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: ImageWidget(image: Images.arrowLeft, width: 28.w),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class RoutineDetailBottomSheet extends StatelessWidget {
),
SizedBox(width: 20.w),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
showDialog(
context: context,
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/sign_up/ui/view/sign_up_agree_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class SignUpAgreeScreen extends StatelessWidget {
child: Container(
padding: EdgeInsets.symmetric(vertical: 8.h),
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => context.read<CheckBoxStateCubit>().clickAllAgree(),
child: Row(
children: [
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/sign_up/ui/widget/agree/agree_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class AgreeWidget extends StatelessWidget {

/// 자세히 보기 ( agreePersonInformation )
isDetail ? GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
launchUrl(
Uri.parse(
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/sign_up/ui/widget/sign_up_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class SignUpAppBar extends StatelessWidget implements PreferredSizeWidget {
children: [
SizedBox(width: 20.w),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => Navigator.pop(context),
child: ImageWidget(
image: Images.arrowLeft,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class MetronomeAppBar extends StatelessWidget implements PreferredSizeWidget{
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => MaeumNavigator.pop(context),
child: ImageWidget(
image: Images.arrowLeft,
Expand Down
32 changes: 32 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,38 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.4.5"
webview_flutter:
dependency: "direct main"
description:
name: webview_flutter
sha256: "6869c8786d179f929144b4a1f86e09ac0eddfe475984951ea6c634774c16b522"
url: "https://pub.dev"
source: hosted
version: "4.8.0"
webview_flutter_android:
dependency: transitive
description:
name: webview_flutter_android
sha256: "0d21cfc3bfdd2e30ab2ebeced66512b91134b39e72e97b43db2d47dda1c4e53a"
url: "https://pub.dev"
source: hosted
version: "3.16.3"
webview_flutter_platform_interface:
dependency: transitive
description:
name: webview_flutter_platform_interface
sha256: d937581d6e558908d7ae3dc1989c4f87b786891ab47bb9df7de548a151779d8d
url: "https://pub.dev"
source: hosted
version: "2.10.0"
webview_flutter_wkwebview:
dependency: transitive
description:
name: webview_flutter_wkwebview
sha256: "9c62cc46fa4f2d41e10ab81014c1de470a6c6f26051a2de32111b2ee55287feb"
url: "https://pub.dev"
source: hosted
version: "3.14.0"
win32:
dependency: transitive
description:
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A new Flutter project.

publish_to: 'none'

version: 0.9.93+124
version: 0.9.94+126

environment:
sdk: '>=3.0.6 <4.0.0'
Expand Down Expand Up @@ -33,6 +33,7 @@ dependencies:
flutter_bloc: ^8.1.6
flutter_screenutil: ^5.9.3
bloc_concurrency: ^0.2.5
webview_flutter: ^4.8.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 7609142

Please sign in to comment.