flutter_json_widget
फ्लटर के लिए एक जेसॉन व्यूअर विजेट। एक विस्तारयोग्य सूची में जेसॉन डेटा दिखाता है। फ़ोन पर डेटा को आसानी से पढ़ने में मदद करता है।
JSON ऑब्जेक्ट को दिखाने के लिए एक विजेट
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Json viewer widget for flutter.
The /example/ folder in the GitHub repo
contains a full Flutter app with demo examples.
Add this to your package's pubspec.yaml file:
dependencies:
flutter_json_widget: ^1.0.3
You can install packages from the command line:
with Flutter:
$ flutter pub get
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:flutter_json_widget/flutter_json_widget.dart';
@override
Widget build(BuildContext context) {
var testString = '''{
"I": "How are you?",
"You": "Excellent!"}
''';
Map<String, dynamic> jsonObj = jsonDecode(testString);
return SafeArea(
child: SingleChildScrollView(
child: JsonViewerWidget(jsonObj)
),
);
}
निर्भरता सूची 2 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗