Open ARchitectsPYDC opened 11 months ago
I'm having the same problem, on the last slide I always get this white header on top. I tried everything and couldn't resolve the issue. I'd appreciate if someone could have a look. Thanks in advance.
I tested it on Android, on latest flutter 3.16.5 stable. It happens when the app is in dark mode.
EDIT: OnBoardingSlider was wrapped in CupertinoApp which was causing the problem. Removing that solved the problem.
import 'package:flutter/material.dart'; import 'package:flutter_onboarding_slider/flutter_onboarding_slider.dart'; import 'package:tour_inn_app/Theme/themeColor.dart';
class BoardingPages extends StatelessWidget { BoardingPages({super.key}); @override Widget build(BuildContext context) { return OnBoardingSlider(
}
Container boardingContainer( BuildContext context, List descriptionTexts) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 40),
child: Stack(
children: [
Positioned(
top: MediaQuery.of(context).size.height * 0.4,
child: Column(
children: [
Text(
descriptionTexts[0],
style: TextStyle(
fontSize: ThemeProperty.xlarge,
color: Colors.white,
height: 1.2),
),
Padding(
padding: const EdgeInsets.only(top: 40),
child: Text(
descriptionTexts[1],
style: TextStyle(
fontSize: ThemeProperty.medium,
color: const Color(0XFFC7C7C7)),
),
)
],
),
)
],
));
}
}
I display this widget directly to my MaterialApp, still shows it regardless, I tried to wrap with Scaffold and without still the trailing exist, and the color inbetween