Can someone help me with this
I have 3 intro pages, when user reaches the last intro page then i want it to be redirected auto to home page with a delay like 5 sec, or i would like to replace the icons with a button to redirect to homepage.
import 'package:flutter/material.dart';
class OnBoardMain extends StatelessWidget {
OnBoardMain({super.key});
final _controller = PageController();
@override
Widget build(BuildContext context) {
return Scaffold(
extendBodyBehindAppBar: true,
appBar: AppBar(backgroundColor: Colors.transparent),
body: Column(
children: [
Expanded(
child: PageView(
controller: _controller,
children: const [
OnBoardScreen(),
OnBoardScreen2(),
OnBoardScreen3(),
],
///
///
),
),
Padding(
padding: const EdgeInsets.only(bottom: 50),
child: SmoothPageIndicator(
controller: _controller,
count: 3,
effect: const ExpandingDotsEffect(
activeDotColor: Colors.black,
dotColor: Colors.white,
dotHeight: 8,
dotWidth: 15,
),
),
),
],
),
);
}
}