Skip to content

Commit

Permalink
feat: format & remove unnecessary imported file
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhdang198 committed Sep 23, 2024
1 parent 12bf810 commit 09f18d4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## 3.1.0
* Improve navigation UX on iOS
* Add width and height for `NavigationMarker`.
* Fix required iOS version
* Snap user location to map
Expand Down
6 changes: 3 additions & 3 deletions example/lib/components/bottom_sheet_address_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class AddressInfo extends StatelessWidget {
children: [
ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
side: const BorderSide(color: Colors.blue)))),
Expand All @@ -48,8 +48,8 @@ class AddressInfo extends StatelessWidget {
TextButton(
style: ButtonStyle(
foregroundColor:
MaterialStateProperty.all<Color>(Colors.blue),
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
WidgetStateProperty.all<Color>(Colors.blue),
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
side: const BorderSide(color: Colors.blue)))),
Expand Down
7 changes: 3 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ class _VietMapNavigationScreenState extends State<VietMapNavigationScreen> {
),
FloatingActionButton(
onPressed: () async {
List<NavigationMarker>? markers =
await _controller?.addImageMarkers([
await _controller?.addImageMarkers([
NavigationMarker(
width: 120,
height: 120,
Expand Down Expand Up @@ -261,7 +260,7 @@ class _VietMapNavigationScreenState extends State<VietMapNavigationScreen> {
children: [
ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<
shape: WidgetStateProperty.all<
RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius:
Expand All @@ -275,7 +274,7 @@ class _VietMapNavigationScreenState extends State<VietMapNavigationScreen> {
child: const Text('Bắt đầu')),
ElevatedButton(
style: ButtonStyle(
shape: MaterialStateProperty.all<
shape: WidgetStateProperty.all<
RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ packages:
path: ".."
relative: true
source: path
version: "3.1.0-pre.1"
version: "3.1.0"
vietmap_gl_platform_interface:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion lib/embedded/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'dart:convert';
import 'dart:developer';
import 'dart:io';
import 'dart:math' hide log;
import 'dart:typed_data';

import 'package:vietmap_flutter_navigation/extension.dart';
import 'package:vietmap_flutter_navigation/models/events.dart';
Expand Down

0 comments on commit 09f18d4

Please sign in to comment.