apoapps_onboarding_screen 1.0.4 copy "apoapps_onboarding_screen: ^1.0.4" to clipboard
apoapps_onboarding_screen: ^1.0.4 copied to clipboard

Add an onboarding screen to your app, this is a fork of SKOnBoardingScreen by senthilece01 (That doesn't work in nullsafety and newer flutter versions))

example/lib/main.dart

import 'package:apoapps_onboarding_screen/sk_onboarding_screen.dart';
import 'package:flutter/material.dart';
import 'package:apoapps_onboarding_screen/flutter_onboarding.dart';
import 'package:apoapps_onboarding_screen/sk_onboarding_screen.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(debugShowCheckedModeBanner: false, home: HomePage());
  }
}

class HomePage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return HomePageState();
  }
}

class HomePageState extends State<HomePage> with TickerProviderStateMixin {
  final GlobalKey<ScaffoldState> _globalKey = new GlobalKey<ScaffoldState>();

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      key: _globalKey,
      body: SKOnboardingScreen(
        bgColor: Colors.white,
        themeColor: const Color(0xFFf74269),
        pages: pages,
        skipClicked: (value) {
          print(value);
          // _globalKey.currentState.showSnackBar(SnackBar(
          //   content: Text("Skip clicked"),
          // ));
        },
        getStartedClicked: (value) {
          print(value);
          // _globalKey.currentState.showSnackBar(SnackBar(
          //   content: Text("Get Started clicked"),
          // ));
        },
      ),
    );
  }

  final pages = [
    ApoappsOnboardingModel(
      title: "Learn math",
      description: "Description 1",
      titleColor: Colors.black,
      descripColor: const Color(0xFF929794),
      imagePath: 'assets/education.png',
    ),
    ApoappsOnboardingModel(
      title: "Title 2",
      description: "Description 2",
      titleColor: Colors.black,
      descripColor: const Color(0xFF929794),
      imagePath: 'assets/process.png',
    ),
    ApoappsOnboardingModel(
      title: "Title 3",
      description: "Description 3",
      titleColor: Colors.black,
      descripColor: const Color(0xFF929794),
      imagePath: 'assets/love.png',
    ),
  ];
}
0
likes
145
points
51
downloads

Publisher

unverified uploader

Weekly Downloads

Add an onboarding screen to your app, this is a fork of SKOnBoardingScreen by senthilece01 (That doesn't work in nullsafety and newer flutter versions))

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on apoapps_onboarding_screen