https://github.com/legytma/google_maps_schema_parser
A google_maps_flutter Schema Parser.
https://github.com/legytma/google_maps_schema_parser
Last synced: 3 months ago
JSON representation
A google_maps_flutter Schema Parser.
- Host: GitHub
- URL: https://github.com/legytma/google_maps_schema_parser
- Owner: Legytma
- License: apache-2.0
- Created: 2020-07-28T12:30:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-27T10:34:23.000Z (about 3 years ago)
- Last Synced: 2025-01-03T01:22:19.149Z (5 months ago)
- Language: Dart
- Size: 408 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/Legytma/google_maps_schema_parser/issues "GitHub issues")
[](https://github.com/Legytma/google_maps_schema_parser/network "GitHub forks")
[](https://github.com/Legytma/google_maps_schema_parser/stargazers "GitHub stars")
[](https://github.com/Legytma/google_maps_schema_parser/blob/master/LICENSE "GitHub license")
[](https://pub.dev/packages/google_maps_schema_parser "Pub")
[](https://github.com/tenhobi/effective_dart "style: effective dart")
")



# Convert JSON to Widget validating with JSON Schema for Flutter apps
* [What is it](#what-is-it "What is it")
* [TYPE SCHEMA PARSER SUPPORT](TYPE_SCHEMA_PARSER_SUPPORT.md "TYPE SCHEMA PARSER SUPPORT")
* [Getting Started](#getting-started "Getting Started")
* [Installation](#installation "Installation")
* [Usage](#usage "Usage")
* [CHANGELOG](CHANGELOG.md "CHANGELOG")
* [Next steps](#next-steps "Next steps")
* [LICENSE](LICENSE "LICENSE")## What is it
The [google_maps_schema_parser](https://pub.dev/packages/google_maps_schema_parser "google_maps_schema_parser") is a parser implementation to [google_maps_flutter](https://pub.dev/packages/google_maps_flutter "google_maps_flutter") Flutter package implemented with base on [schema_widget](https://pub.dev/packages/schema_widget "schema_widget") package that produces widgets dynamically interpreting JSON objects.
### Installation
* Add this to your package's pubspec.yaml file:
```yaml
dependencies:
get_it:
schema_widget:
google_maps_schema_parser: ^1.0.0-1
```
* Install packages from the command line:
with Flutter:
```shell script
$ flutter packages get
```
* Import it into the code file:
```dart
import 'package:google_maps_schema_parser/google_maps_schema_parser.dart';
```### Usage
```dart
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
import 'package:schema_widget/schema_widget.dart';
import 'package:google_maps_schema_parser/google_maps_schema_parser.dart';void main() {
runApp(MyApp());
}class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Google Maps Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: FutureBuilder(
future: GetIt.I.allReady(ignorePendingAsyncCreation: false),
builder: (buildContext, snapshot) {
if (snapshot.hasData) {
return SchemaWidget.parse(context, {
"type": "GoogleMap",
"initialCameraPosition": {
"target": {
"latitude": 0.0,
"longitude": 0.0
}
}
});
}return Center(child: Text("Loading..."));
},
),
),
),
);
}
}
```## Next steps
- [x] Publish Package;
- [x] Make MVP;
- [x] Minimal documentation;
- [x] Add list of default supported Widgets;
- [x] Add list of default supported Types;
- [ ] Create content about;