ehsure_location_map 0.0.1 copy "ehsure_location_map: ^0.0.1" to clipboard
ehsure_location_map: ^0.0.1 copied to clipboard

outdated

An Ehsure Flutter plugin.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:ehsure_location_map/ehsure_location_map.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _locationInfo = 'Unknown';

  @override
  void initState() {
    super.initState();
    initLocationState();
  }

  Future<void> initLocationState() async {
    String locationInfo;
    locationInfo = await EhsureLocationMap.locationInfo;
    setState(() {
      _locationInfo = locationInfo;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text(_locationInfo),
        ),
      ),
    );
  }
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

An Ehsure Flutter plugin.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on ehsure_location_map