Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Type 'GetLifeCycleBase' not found. #3132

Open
jaiveer03 opened this issue Jun 24, 2024 · 0 comments
Open

Error: Type 'GetLifeCycleBase' not found. #3132

jaiveer03 opened this issue Jun 24, 2024 · 0 comments
Assignees

Comments

@jaiveer03
Copy link

ATTENTION: DO NOT USE THIS FIELD TO ASK SUPPORT QUESTIONS. USE THE PLATFORM CHANNELS FOR THIS. THIS SPACE IS DEDICATED ONLY FOR BUGS DESCRIPTION.
Fill in the template. Issues that do not respect the model will be closed.

Describe the bug
I just added get to my pubspec.yaml file and wrapped with GetMaterialApp. I tried to run but failed and got
"Error: Type 'GetLifeCycleBase' not found."

This is my main.dart code

import 'package:analyst_ji/core/theme/theme.dart';
import 'package:analyst_ji/features/auth/presentation/pages/expert_details_screen.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

void main() {
runApp(const MyApp());
}

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

// This widget is the root of your application.
@OverRide
Widget build(BuildContext context) {
return GetMaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: AppTheme.lightThemeMode,
home: const ExpertDetailsScreen(),
);
}
}

image

Flutter Version:
Im using flutter version 3.22.2

Getx Version:
4.6.6
Describe on which device you found the bug:
Getting on ios simulator on macbook pro m2 chip
Minimal reproduce code

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

// This widget is the root of your application.
@OverRide
Widget build(BuildContext context) {
return GetMaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: AppTheme.lightThemeMode,
home: const ExpertDetailsScreen(),
);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants