Navigine iOS/Android/Flutter SDK
1.0.0
Objective-C/Java/Dart SDK API
Loading...
Searching...
No Matches
location_view.dart
Go to the documentation of this file.
1
import
'dart:ffi'
;
2
import
'package:flutter/material.dart'
;
3
import
'package:navigine_sdk/com/_library_context.dart'
as __lib;
4
5
import
'package:navigine_sdk/platform_view.dart'
;
6
import
'package:navigine_sdk/com/navigine/idl/location_window.dart'
;
7
import
'package:navigine_sdk/com/navigine/idl/navigine_sdk.dart'
;
8
22
class
LocationView
extends
StatefulWidget {
23
const
LocationView
({Key? key, required this.
onViewCreated
, this.textDirection, }): super(key: key);
24
25
@override
26
State<StatefulWidget>
createState
() {
27
return
_LocationViewState();
28
}
29
35
final
void
Function(
LocationWindow
)
onViewCreated
;
36
final
TextDirection? textDirection;
37
}
38
39
class
_LocationViewState
extends
State<LocationView> {
40
@override
41
Widget build(BuildContext context) {
42
return
PlatformView.create(
43
(view) {
44
if
(!mounted) {
45
return
false
;
46
}
47
48
final
window =
NavigineSdk
.
getInstance
().createLocationWindow(view);
49
widget.onViewCreated(window);
50
51
return
true
;
52
},
53
textDirection: widget.textDirection,
54
);
55
}
56
}
com
location_view.dart
Generated on Fri Apr 17 2026 18:56:42 for Navigine iOS/Android/Flutter SDK by
Doxygen
1.13.2