mapsm_lv 0.17.3 copy "mapsm_lv: ^0.17.3" to clipboard
mapsm_lv: ^0.17.3 copied to clipboard

outdated

A Flutter plugin for integrating SmartMap inside a Flutter application on Android, iOS and web platfroms.

example/lib/main.dart

// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:mapsm_lv/mapsm/map/pages/map_page.dart';
import 'package:mapsm_lv/mapsm/util/bloc_observer.dart';
import 'package:http/http.dart' as http;
import 'package:mapsm_lv_platform_interface/mapsm_lv_platform_interface.dart';

void main() async {
  BlocOverrides.runZoned(
    () => runApp(const MapsDemo()),
    blocObserver: AppBlocObserver(),
  );
}
const MaterialColor primaryColorShades = MaterialColor(
  0xFF181861,
  <int, Color>{
    50: Color(0xFFA4A4BF),
    100: Color(0xFFA4A4BF),
    200: Color(0xFFA4A4BF),
    300: Color(0xFF9191B3),
    400: Color(0xFF7F7FA6),
    500: Color(0xFF181861),
    600: Color(0xFF6D6D99),
    700: Color(0xFF5B5B8D),
    800: Color(0xFF494980),
    900: Color(0xFF181861),
  },
);
class MapsDemo extends StatelessWidget {
  static const String ACCESS_TOKEN = String.fromEnvironment("ACCESS_TOKEN");
  const MapsDemo({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    List<LatLng> rPoints = [];
    rPoints.add(LatLng(21.0085698,105.7300834));
    rPoints.add(LatLng(21.007515599999998,105.8075224));
    rPoints.add(LatLng(21.0008976,105.80317009999999));
    //rPoints.add(LatLng(21.0085698,105.7300834));
    return MaterialApp(
      title: 'MB SmartMap',
      theme: ThemeData(
        primarySwatch: primaryColorShades,
      ),
      home: MapPage(
        rPoints:rPoints
      ),
    );
  }
}
1
likes
0
points
87
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for integrating SmartMap inside a Flutter application on Android, iOS and web platfroms.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

bloc_test, collection, cupertino_icons, device_info_plus, equatable, flutter, flutter_bloc, flutter_dotenv, google_fonts, http, location, location_repository_mapsm, mapsm_lv_platform_interface, mapsm_lv_web, mocktail, polyline_do, sliding_up_panel, very_good_analysis

More

Packages that depend on mapsm_lv