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

PlatformAndroid

A Flutter plugin to show full-screen wake screens (incoming calls, alarms, ride accept).

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fullscreen_wake_screen/fullscreen_wake_screen.dart';

void main() {
  runApp(MaterialApp(
    initialRoute: '/',
    routes: {
      '/': (_) => const HomePage(),
      '/incoming_call': (_) => const IncomingCallScreen(),
    },
  ));
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            FullscreenWakeScreen.show(route: '/incoming_call');
          },
          child: const Text("Simulate Call"),
        ),
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.blue[100],
      body: const Center(
        child: Text("Incoming Call Screen", style: TextStyle(fontSize: 24)),
      ),
    );
  }
}
0
likes
140
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to show full-screen wake screens (incoming calls, alarms, ride accept).

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fullscreen_wake_screen

Packages that implement fullscreen_wake_screen