पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv1.0.4

flutter_duration_picker

समय चयनकर्ता के आधार पर अवधि चुनने के लिए एक विजेट।

30-दिन डाउनलोड
60
लाइक
54
Pub अंक
40

पैकेज इंस्टॉल करें

flutter pub add flutter_duration_picker

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर विजेट जो अवधि के चयन के लिए डिज़ाइन किया गया है, मैटीरियल समय पिकर के आधार पर। यह घंटे, मिनट और सेकंड जैसे समय अंतराल का चयन करने के लिए एक सुगम इंटरफेस प्रदान करता है, जो टाइमर, वर्कआउट ऐप्स या शेड्यूलिंग टूल्स जैसे ऐप्स के लिए आदर्श है। पिकर के कस्टमाइज़ेबल स्टेप इंक्रीमेंट्स का समर्थन करता है और मैटीरियल डिज़ाइन सिद्धांतों के आधार पर बनाया गया है, जिससे प्लेटफॉर्म के बीच एक सुसंगत उपयोगकर्ता अनुभव मिलता है।

उपयोग

  • टाइमर अवधि सेट करें
  • वर्कआउट सेशन लंबाई को कॉन्फ़िगर करना
  • अवधि के साथ घटनाओं की योजना बनाएं
  • कार्य समय अनुमान दर्ज करें
  • गणना घटाएं टाइमर बनाना

मुख्य विशेषताएँ

  • मैटेरियल डिज़ाइन-आधारित यूजर इंटरफेस
  • कस्टमाइज़ किए गए समय चरण वृद्धि
  • घंटे, मिनट और सेकंड का समर्थन करता है
  • मौजूदा फ़ॉर्म के साथ सरल एकीकरण
  • प्रतिक्रियाशील और एक्सेसिबल लेआउट

इनके लिए उपयुक्त

  • अवधि चयन की आवश्यकता वाले ऐप्स
  • समय अंतराल की आवश्यकता वाले फॉर्म इनपुट
  • मैटेरियल डिज़ाइन का उपयोग करने वाले मोबाइल एप्लिकेशन
  • हल्के समय चयनकर्ता की तलाश में विकासकर्ता
  • न्यूनतम निर्भरता वाले प्रोजेक्ट्स

विचार योग्य बातें

  • स्रोत-विशिष्ट कस्टमाइजेशन विकल्प सूचीबद्ध नहीं हैं
  • उन्नत विशेषताओं के बिना मूल अवधि इनपुट तक सीमित
  • AM/PM या तिथि घटकों का समर्थन नहीं करता है
  • प्रामाणिकता के हस्तक्षेप से प्रबंधन की आवश्यकता है
  • कोई निर्मित स्थानीयकरण समर्थन उल्लेख नहीं किया गया

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Duration Picker for flutter

A little widget for picking durations. Heavily inspired from the Material Design time picker widget.

This repo is unmaintained, please check out the fork here: https://github.com/juliansteenbakker/duration_picker

Example Usage:

dependencies:
  flutter_duration_picker: "^1.0.0"
import 'package:flutter/material.dart';
import 'package:flutter_duration_picker/flutter_duration_picker.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Duration Picker Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new MyHomePage(title: 'Duration Picker Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  Duration _duration = Duration(hours: 0, minutes: 0);
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text(widget.title),
      ),
      body: new Center(
        child: new Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            new Expanded(
		// Use it from the context of a stateful widget, passing in
		// and saving the duration as a state variable.
                child: DurationPicker(
              duration: _duration,
              onChange: (val) {
                this.setState(() => _duration = val);
              },
              snapToMins: 5.0,
            ))
          ],
        ),
      ),
      floatingActionButton: Builder(
          builder: (BuildContext context) => new FloatingActionButton(
                onPressed: () async {
		  // Use it as a dialog, passing in an optional initial time
		  // and returning a promise that resolves to the duration
		  // chosen when the dialog is accepted. Null when cancelled.
                  Duration resultingDuration = await showDurationPicker(
                    context: context,
                    initialTime: new Duration(minutes: 30),
                  );
                  Scaffold.of(context).showSnackBar(new SnackBar(
                      content: new Text("Chose duration: $resultingDuration")));
                },
                tooltip: 'Popup Duration Picker',
                child: new Icon(Icons.add),
              )),
    );
  }
}

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।