curve_slider 0.0.4 copy "curve_slider: ^0.0.4" to clipboard
curve_slider: ^0.0.4 copied to clipboard

Interactive curved slider with sound and haptic support.

example/lib/main.dart

import 'package:curve_slider/curve_slider_view.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Custom Curve Slider',
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: CurveSliderView(
          initialValue: 0.002,
          min: 0.001,
          max: 0.005,
          curvature: 120,
          totalTicks: 40,
          thumbImage: 'assets/images/fingerprint.png',
          tickSound: 'sounds/tick.mp3',
          onChanged: (value) {
            debugPrint("on change: $value");
          },
        ),
      ),
    );
  }
}
4
likes
160
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

Interactive curved slider with sound and haptic support.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

audioplayers, equatable, flutter, flutter_bloc, gap

More

Packages that depend on curve_slider