teleprompter_recorder 0.0.1 copy "teleprompter_recorder: ^0.0.1" to clipboard
teleprompter_recorder: ^0.0.1 copied to clipboard

Um widget de teleprompter com gravação de vídeo integrada para Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:teleprompter_recorder/teleprompter.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(theme: ThemeData.dark(), home: const Page());
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SizedBox(
        height: MediaQuery.sizeOf(context).height,
        width: MediaQuery.sizeOf(context).width,
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => DemoPage()),
                );
              },
              child: Text('go'),
            ),
          ],
        ),
      ),
    );
  }
}

class DemoPage extends StatefulWidget {
  const DemoPage({super.key});
  @override
  State<DemoPage> createState() => _DemoPageState();
}

class _DemoPageState extends State<DemoPage> {
  @override
  Widget build(BuildContext context) {
    return TeleprompterPage(
      text:
          '''Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.''',
      maxDurationSeconds: 40,
      onVideoReady: (video) {
        debugPrint(video.name);
      },
    );
  }
}
4
likes
0
points
10
downloads

Publisher

verified publisherappconty.com

Weekly Downloads

Um widget de teleprompter com gravação de vídeo integrada para Flutter.

License

unknown (license)

Dependencies

camera, cross_file, cupertino_icons, ffmpeg_kit_flutter_new, flutter, flutter_colorpicker, google_fonts, path_provider, video_thumbnail, wakelock_plus

More

Packages that depend on teleprompter_recorder