FLUTTER ECOSYSTEM

hadukin/custom_sliding_segmented_control

कस्टम स्लाइडिंग सेगमेंटेड कंट्रोल

कस्टम स्लाइडिंग सेगमेंटेड कंट्रोल प्रोजेक्ट कवर
Stars
49
Forks
29
अंतिम पुश (UTC)
3 सित॰ 2026
प्रोजेक्ट स्थिति
सक्रिय
hadukin GitHub avatar
GITHUB User

hadukin ↗

भाषाएँDartC++CMakeSwiftCHTMLKotlinObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 5 आइटम
  • cupertino_ui^1.0.1
  • flutter{"sdk":"flutter"}
  • material_ui^1.1.0
  • flutter_testडेवलपमेंट{"sdk":"flutter"}
  • lintडेवलपमेंट^2.8.0

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

CustomSlidingSegmentedControl

Allows you to flexibly configure the widget for displaying controls. You can add color, speed, size, initial value, animation and more.

https://raw.githubusercontent.com/hadukin/custom_sliding_segmented_control/main/screenshot/screenshot_3.png

Example
import 'package:custom_sliding_segmented_control/custom_sliding_segmented_control.dart';

CustomSlidingSegmentedControl<int>(
  initialValue: 2,
  children: {
    1: Text('News daily portal'),
    2: Text('Map'),
    3: Text('Paper'),
  },
  decoration: BoxDecoration(
    color: CupertinoColors.lightBackgroundGray,
    borderRadius: BorderRadius.circular(8),
  ),
  thumbDecoration: BoxDecoration(
    color: Colors.white,
    borderRadius: BorderRadius.circular(6),
    boxShadow: [
      BoxShadow(
        color: Colors.black.withOpacity(.3),
        blurRadius: 4.0,
        spreadRadius: 1.0,
        offset: Offset(
          0.0,
          2.0,
        ),
      ),
    ],
  ),
  duration: Duration(milliseconds: 300),
  curve: Curves.easeInToLinear,
  onValueChanged: (v) {
    print(v);
  },
),

More examples