Skip to content
Snippets Groups Projects
Commit f5344e67 authored by vjrj's avatar vjrj
Browse files

Trying to fix introduction error

parent cd79f473
No related branches found
No related tags found
No related merge requests found
......@@ -186,8 +186,8 @@ void main() async {
GinkgoApp(darkTheme: darkTheme, lightTheme: lightTheme)),
)));
});
if (inDevelopment) {
// Only use sentry in production
if (!kIsWeb && inDevelopment) {
// Only use sentry in development
await SentryFlutter.init((
SentryFlutterOptions options,
) {
......@@ -266,11 +266,11 @@ class _AppIntro extends State<AppIntro> {
GlobalKey<IntroductionScreenState>();
void _onIntroEnd(BuildContext context, AppCubit cubit) {
cubit.introViewed();
Navigator.of(context).pushReplacement(
MaterialPageRoute<void>(
builder: (BuildContext _) => const SkeletonScreen()),
builder: (BuildContext _) => const FeedbackAndSkeletonScreen()),
);
cubit.introViewed();
}
@override
......@@ -551,10 +551,7 @@ class _GinkgoAppState extends State<GinkgoApp> {
locale: context.locale,
debugShowCheckedModeBanner: false,
home: context.read<AppCubit>().isIntroViewed
? BetterFeedback(
localizationsDelegates: context.localizationDelegates
..add(CustomFeedbackLocalizationsDelegate()),
child: const SkeletonScreen())
? const FeedbackAndSkeletonScreen()
: const AppIntro(),
builder: (BuildContext buildContext, Widget? widget) {
NotificationController.locale = context.locale;
......@@ -562,14 +559,7 @@ class _GinkgoAppState extends State<GinkgoApp> {
BouncingScrollWrapper.builder(
context,
ConnectivityWidgetWrapperWrapper(
//message: tr('offline'),
//height: 18,
offlineWidget: /* Container(
color: Colors.transparent,
child: Center(
child: */
Column(
offlineWidget: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
const Icon(
......@@ -596,7 +586,6 @@ class _GinkgoAppState extends State<GinkgoApp> {
const SizedBox(height: 110),
],
),
child: widget!,
)),
maxWidth: 480,
......@@ -614,3 +603,17 @@ class _GinkgoAppState extends State<GinkgoApp> {
});
}
}
class FeedbackAndSkeletonScreen extends StatelessWidget {
const FeedbackAndSkeletonScreen({
super.key,
});
@override
Widget build(BuildContext context) {
return BetterFeedback(
localizationsDelegates: context.localizationDelegates
..add(CustomFeedbackLocalizationsDelegate()),
child: const SkeletonScreen());
}
}
......@@ -18,8 +18,8 @@ class _SecondScreenState extends State<SecondScreen> {
@override
void initState() {
tutorial = SecondTutorial(context);
super.initState();
tutorial = SecondTutorial(context);
}
@override
......
......@@ -27,8 +27,8 @@ class _ThirdScreenState extends State<ThirdScreen> {
@override
void initState() {
tutorial = ThirdTutorial(context);
super.initState();
tutorial = ThirdTutorial(context);
}
@override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment