Skip to content

Commit

Permalink
simple fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Moktadir authored and Moktadir committed Mar 22, 2024
1 parent ddada34 commit f7f6f75
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ linter:
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
spelling_typo:
enabled: false
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

Expand Down
2 changes: 1 addition & 1 deletion lib/app/components/global-widgets/empty_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:ionicons/ionicons.dart';
import 'package:lottie/lottie.dart';

class EmptyWidget extends StatelessWidget {
const EmptyWidget({Key? key, required this.onPressed}) : super(key: key);
const EmptyWidget({super.key, required this.onPressed});
final VoidCallback onPressed;
@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions lib/app/components/global-widgets/soft_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';

class SoftButton extends StatelessWidget {
const SoftButton({
Key? key,
super.key,
required this.title,
required this.onPressed,
}) : super(key: key);
});
final String title;
final VoidCallback onPressed;

Expand Down
2 changes: 1 addition & 1 deletion lib/app/components/navbar/bottom_navbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:iconly/iconly.dart';
import 'navbar_controller.dart';

class BottomNavbar extends GetView<NavbarController> {
const BottomNavbar({Key? key}) : super(key: key);
const BottomNavbar({super.key});

@override
Widget build(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:get/get.dart';
import '../controllers/home_controller.dart';

class PostDetailView extends GetView<HomeController> {
const PostDetailView({Key? key}) : super(key: key);
const PostDetailView({super.key});

@override
Widget build(BuildContext context) {
Expand Down
5 changes: 2 additions & 3 deletions lib/app/modules/onboarding/views/onboarding_view.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'package:get/get.dart';

import '../../../components/global-widgets/my_buttons.dart';
import '../../../routes/app_pages.dart';
import '../controllers/onboarding_controller.dart';

class OnboardingView extends GetView<OnboardingController> {
const OnboardingView({Key? key}) : super(key: key);
const OnboardingView({super.key});
@override
Widget build(BuildContext context) {
var theme = Theme.of(context);
Expand All @@ -17,7 +16,7 @@ class OnboardingView extends GetView<OnboardingController> {
children: [
PageView.builder(
controller: controller.pageController,
onPageChanged: controller.selectedPage,
onPageChanged: controller.selectedPage.call,
itemCount: controller.onBoardingPages.length,
itemBuilder: (context, index) {
return controller.onBoardingPages.isEmpty
Expand Down

0 comments on commit f7f6f75

Please sign in to comment.