intro_slider 4.2.5
intro_slider: ^4.2.5 copied to clipboard
Flutter Intro Slider is a flutter plugin that helps you make a cool intro for your app
import 'package:flutter/material.dart';
import 'intro_screen_custom_config.dart';
import 'intro_screen_custom_layout.dart';
import 'intro_screen_default.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
const type = IntroScreenType.customConfig;
return MaterialApp(
home: switch (type) {
IntroScreenType.defaultConfig => const IntroScreenDefault(),
IntroScreenType.customConfig => const IntroScreenCustomConfig(),
IntroScreenType.customLayout => const IntroScreenCustomLayout(),
},
debugShowCheckedModeBanner: false,
);
}
}
enum IntroScreenType {
defaultConfig,
customConfig,
customLayout,
}