Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jwson-automation committed Aug 12, 2024
1 parent 1267e62 commit 9c503f9
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/core/TopScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TopScreen extends ConsumerWidget {
final selectedIndex = ref.watch(selectedIndexProvider);

final List<Widget> pages = [
OnboardingScreen(),
const OnboardingScreen(),
const MatchScreen(),
const LoginScreen(),
];
Expand Down
6 changes: 1 addition & 5 deletions lib/feature/onboarding/OnboardingData.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ class OnboardingData {
description: "사랑하는 사람들과 항상 연결되세요.",
image: Assets.images.sample
},
{
title: "시작하기",
description: "여정을 시작해봅시다!",
image: Assets.images.sample
},
{title: "시작하기", description: "여정을 시작해봅시다!", image: Assets.images.sample},
];
}
2 changes: 2 additions & 0 deletions lib/feature/onboarding/OnboardingScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import 'widgets/OnboardingDotWidget.dart';
import 'widgets/OnboardingPageButton.dart';

class OnboardingScreen extends StatefulWidget {
const OnboardingScreen({super.key});

@override
_OnboardingScreenState createState() => _OnboardingScreenState();
}
Expand Down
3 changes: 1 addition & 2 deletions lib/feature/onboarding/widgets/OnboardingDotWidget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import '../OnboardingData.dart';
class OnboardingDotWidget extends StatelessWidget {
final int currentPage;

const OnboardingDotWidget({Key? key, required this.currentPage})
: super(key: key);
const OnboardingDotWidget({super.key, required this.currentPage});

@override
Widget build(BuildContext context) {
Expand Down
8 changes: 4 additions & 4 deletions lib/feature/onboarding/widgets/OnboardingPageButton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class OnboardingPageButton extends StatelessWidget {
final VoidCallback onNextPressed;

const OnboardingPageButton({
Key? key,
super.key,
required this.currentPage,
required this.onNextPressed,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -21,13 +21,13 @@ class OnboardingPageButton extends StatelessWidget {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
padding: EdgeInsets.symmetric(horizontal: 50, vertical: 15),
padding: const EdgeInsets.symmetric(horizontal: 50, vertical: 15),
),
child: Text(
currentPage == OnboardingData.pageDataList.length - 1
? AppStrings.onboardingScreenButtonStart
: AppStrings.onboardingScreenButtonNext,
style: TextStyle(fontSize: 18),
style: const TextStyle(fontSize: 18),
),
);
}
Expand Down
11 changes: 6 additions & 5 deletions lib/feature/onboarding/widgets/OnboardingPageItem.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ class OnboardingPageItem extends StatelessWidget {
final String description;
final String image;

OnboardingPageItem({
const OnboardingPageItem({
super.key,
required this.title,
required this.description,
required this.image,
Expand All @@ -20,19 +21,19 @@ class OnboardingPageItem extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
SvgPicture.asset(image, height: 300),
SizedBox(height: 30),
const SizedBox(height: 30),
Text(
title,
style: TextStyle(
style: const TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 15),
const SizedBox(height: 15),
Text(
description,
textAlign: TextAlign.center,
style: TextStyle(fontSize: 16),
style: const TextStyle(fontSize: 16),
),
],
),
Expand Down
4 changes: 2 additions & 2 deletions lib/feature/onboarding/widgets/OnboardingPageViewBuilder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class OnboardingPageViewBuilder extends StatelessWidget {
final Function(int) onPageChanged;

const OnboardingPageViewBuilder({
Key? key,
super.key,
required this.pageController,
required this.onPageChanged,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand Down
1 change: 0 additions & 1 deletion lib/utils/AppStrings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,4 @@ class AppStrings {
static const String onboardingDescription3 = '여정을 시작해봅시다!';
static const String onboardingScreenButtonStart = '시작하기';
static const String onboardingScreenButtonNext = '다음';

}

0 comments on commit 9c503f9

Please sign in to comment.