call_slider_button 1.1.1
call_slider_button: ^1.1.1 copied to clipboard
A customizable Flutter widget mimicking a call slider button.
example/call_slider_button_example.dart
import 'package:flutter/material.dart';
import 'package:call_slider_button/call_slider_button.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.black,
body: Center(
child: CallSliderButton(
onAccept: () => debugPrint("Call accepted!"),
onDecline: () => debugPrint("Call declined!"),
),
),
),
);
}
}