Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/core/helpers/responsive_layout.helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ enum DeviceType { mobile, tab, desktop }

class ResponsiveLayoutHelper {
static const int mobileMaxWidth = 375;
static const int tabletMaxWidth = 768;
static const int tabletMaxWidth = 600;
static const int desktopMaxWidth = 1024;

static DeviceType getDeviceType(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion lib/core/theme/app_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class AppTheme {
),

// Custom dark theme components
cardTheme: CardTheme(color: scaffoldDarkColor, surfaceTintColor: scaffoldDarkColor),
//cardTheme: CardTheme(color: scaffoldDarkColor, surfaceTintColor: scaffoldDarkColor),
dividerTheme: DividerThemeData(color: tabBorderDarkColor),
appBarTheme: AppBarTheme(
backgroundColor: scaffoldDarkColor,
Expand Down
26 changes: 16 additions & 10 deletions lib/features/auth/pages/mobile/login_mobile.dart
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
import 'package:cookethflow/features/auth/widgets/login_form.dart';
import 'package:cookethflow/features/auth/widgets/slider2.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

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

@override
Widget build(BuildContext context) {
return SingleChildScrollView(
child:
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 24.0,
vertical: 16.0,
),
child: LoginForm(),
),
);
child: Column(
children: [
SizedBox(height: 0.35.sh, child: SliderStart2()),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 24.0,
vertical: 16.0,
),
child: LoginForm(),
),
],
),
);
}
}
}
16 changes: 13 additions & 3 deletions lib/features/auth/pages/mobile/signup_mobile.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
import 'package:cookethflow/features/auth/widgets/signup_form.dart';
import 'package:cookethflow/features/auth/widgets/slider2.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

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

@override
Widget build(BuildContext context) {
return SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 24.0, vertical: 16.0),
child: SignUpForm(),
child: Column(
children: [
SizedBox(height: 0.55.sh, child: SliderStart2()),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 24.0,
vertical: 16.0,
),
child: SignUpForm(),
),
],
),
);
}
Expand Down
68 changes: 68 additions & 0 deletions lib/features/auth/widgets/slider2.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import 'package:carousel_slider/carousel_slider.dart';
import 'package:cookethflow/core/theme/colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class SliderStart2 extends StatelessWidget {
final List<String> images = [
'assets/images/Frame 400.png',
'assets/images/Frame 401.png',
'assets/images/Frame 402.png',
];

SliderStart2({super.key});

@override
Widget build(BuildContext context) {
final ValueNotifier<int> currentIndex = ValueNotifier<int>(0);

return Container(
color: const Color(0xFFFDE2CF),
padding: EdgeInsets.only(bottom: 5),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Expanded(
child: CarouselSlider(
options: CarouselOptions(
autoPlay: true,
autoPlayInterval: const Duration(milliseconds: 2500),
viewportFraction: 1.0,
enableInfiniteScroll: true,
scrollPhysics: const NeverScrollableScrollPhysics(),
onPageChanged: (index, reason) {
currentIndex.value = index;
},
),
items:
images.map((image) {
return Image.asset(image, fit: BoxFit.cover);
}).toList(),
),
),
ValueListenableBuilder<int>(
valueListenable: currentIndex,
builder: (context, index, child) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: List.generate(
3,
(i) => Container(
margin: EdgeInsets.symmetric(horizontal: 4.w),
width: 12.w,
height: 12.h,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: i == index ? primaryColor : Colors.white,
),
),
),
);
},
),
],
),
);
}
}
20 changes: 10 additions & 10 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ packages:
dependency: transitive
description:
name: async
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
url: "https://pub.dev"
source: hosted
version: "2.12.0"
version: "2.13.0"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -181,10 +181,10 @@ packages:
dependency: transitive
description:
name: fake_async
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
url: "https://pub.dev"
source: hosted
version: "1.3.2"
version: "1.3.3"
ffi:
dependency: transitive
description:
Expand Down Expand Up @@ -553,10 +553,10 @@ packages:
dependency: transitive
description:
name: intl
sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5"
url: "https://pub.dev"
source: hosted
version: "0.19.0"
version: "0.20.2"
jwt_decode:
dependency: transitive
description:
Expand All @@ -569,10 +569,10 @@ packages:
dependency: transitive
description:
name: leak_tracker
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
url: "https://pub.dev"
source: hosted
version: "10.0.8"
version: "10.0.9"
leak_tracker_flutter_testing:
dependency: transitive
description:
Expand Down Expand Up @@ -1166,10 +1166,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
url: "https://pub.dev"
source: hosted
version: "14.3.1"
version: "15.0.0"
web:
dependency: transitive
description:
Expand Down
Loading