prides 0.0.1-dev.1 copy "prides: ^0.0.1-dev.1" to clipboard
prides: ^0.0.1-dev.1 copied to clipboard

discontinued

A package that helps in creating and Presenting Slides.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:prides/prides.dart';
import './content/content.dart';

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      darkTheme: ThemeData.dark(),
      theme: ThemeData.light(),
      home: const MyHomePage(),
      debugShowCheckedModeBanner: false,
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Material(
      child: PresentationWidget(
        background: const ColoredBox(
          color: Color.fromARGB(255, 113, 61, 173),
        ), // a one color background for whole presentation
        slides: [
          const TitleSlide(), // slide in content/title_slide.dart
          const ExampleSlide(
            text: 'Slide with no background',
          ), // custom slide with no background
          const ExampleSlide(
            text: 'Slide with a background color',
            backgroundColor: Color.fromARGB(255, 30, 114, 184),
          ),
          const SimpleSlide(
            slide: Text('This is a SimpleSlide without background.'),
          ), // usage of SimpleSlide that comes with the package
          SimpleSlide(
            slide: const Text('This is a SimpleSlide with background'),
            background:
                Container(color: const Color.fromARGB(255, 90, 155, 180)),
          ),
          const CounterSlide(),
          const ExampleSlide(
            text: 'Flutter is Awesome!',
            backgroundColor: Colors.blue,
          ),
        ],
      ),
    );
  }
}

void main() {
  runApp(const MyApp());
}
13
likes
0
pub points
2%
popularity

Publisher

verified publisherimmadisairaj.dev

A package that helps in creating and Presenting Slides.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, meta

More

Packages that depend on prides