huawei_location 5.1.0+301 copy "huawei_location: ^5.1.0+301" to clipboard
huawei_location: ^5.1.0+301 copied to clipboard

outdated

HUAWEI Flutter Location Kit plugin combines the Global Navigation Satellite System (GNSS), Wi-Fi, and base station location functionalities into your app.

example/lib/main.dart

/*
    Copyright 2020-2021. Huawei Technologies Co., Ltd. All rights reserved.

    Licensed under the Apache License, Version 2.0 (the "License")
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        https://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

import 'package:flutter/material.dart';

import 'screens/activity_conversion_screen.dart';
import 'screens/activity_identification_screen.dart';
import 'screens/activity_screen.dart';
import 'screens/add_geofence_screen.dart';
import 'screens/fusedlocation_screen.dart';
import 'screens/geofence_screen.dart';
import 'screens/home_screen.dart';
import 'screens/location_enhance_screen.dart';
import 'screens/location_updates_cb_screen.dart';
import 'screens/location_updates_ex_cb_screen.dart';
import 'screens/location_updates_screen.dart';

void main() => runApp(LocationKitDemoApp());

class LocationKitDemoApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HomeScreen(),
      routes: {
        HomeScreen.ROUTE_NAME: (context) => HomeScreen(),
        FusedLocationScreen.ROUTE_NAME: (context) => FusedLocationScreen(),
        ActivityScreen.ROUTE_NAME: (context) => ActivityScreen(),
        GeofenceScreen.ROUTE_NAME: (context) => GeofenceScreen(),
        AddGeofenceScreen.ROUTE_NAME: (context) => AddGeofenceScreen(),
        ActivityIdentificationScreen.ROUTE_NAME: (context) =>
            ActivityIdentificationScreen(),
        ActivityConversionScreen.ROUTE_NAME: (context) =>
            ActivityConversionScreen(),
        LocationUpdatesScreen.ROUTE_NAME: (context) => LocationUpdatesScreen(),
        LocationUpdatesCbScreen.ROUTE_NAME: (context) =>
            LocationUpdatesCbScreen(),
        LocationUpdatesExCbScreen.ROUTE_NAME: (context) =>
            LocationUpdatesExCbScreen(),
        LocationEnhanceScreen.ROUTE_NAME: (context) => LocationEnhanceScreen(),
      },
    );
  }
}
33
likes
0
pub points
92%
popularity

Publisher

verified publisherdeveloper.huawei.com

HUAWEI Flutter Location Kit plugin combines the Global Navigation Satellite System (GNSS), Wi-Fi, and base station location functionalities into your app.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on huawei_location