masamune_introduction 2.7.15 copy "masamune_introduction: ^2.7.15" to clipboard
masamune_introduction: ^2.7.15 copied to clipboard

Masamune plugin package for displaying an introduction description screen.

example/lib/main.dart

// Dart imports:

// Flutter imports:
import 'package:flutter/material.dart';

// Package imports:
import 'package:masamune/masamune.dart';
import 'package:masamune_introduction/masamune_introduction.dart';

final List<MasamuneAdapter> masamuneAdapters = [
  const IntroductionMasamuneAdapter(
    items: LocalizedValue(
      [
        LocalizedLocaleValue(
          Locale("en", "US"),
          [
            IntroductionItem(
              title: Text("Title1"),
              body: Text("Body1"),
              image: Icon(Icons.abc, size: 128),
            ),
            IntroductionItem(
              title: Text("Title2"),
              body: Text("Body2"),
              image: Icon(Icons.abc, size: 128),
            ),
            IntroductionItem(
              title: Text("Title3"),
              body: Text("Body3"),
              image: Icon(Icons.abc, size: 128),
            )
          ],
        ),
      ],
    ),
    skipLabel: LocalizedValue(
      [
        LocalizedLocaleValue(Locale("en", "US"), "Skip"),
      ],
    ),
    doneLabel: LocalizedValue(
      [
        LocalizedLocaleValue(Locale("en", "US"), "Done"),
      ],
    ),
  ),
];

void main() {
  runMasamuneApp(
    masamuneAdapters: masamuneAdapters,
    (ref) => MasamuneApp(
      home: MasamuneIntroductionPage(
        routeQuery: MasamuneIntroductionPage.query(),
      ),
      title: "Flutter Demo",
      masamuneAdapters: ref.adapters,
      theme: AppThemeData(
        primary: Colors.blue,
      ),
    ),
  );
}
0
likes
160
points
3.24k
downloads

Publisher

verified publishermathru.net

Weekly Downloads

Masamune plugin package for displaying an introduction description screen.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, introduction_screen, katana, masamune

More

Packages that depend on masamune_introduction