In localhost its working but when i build release and deployed it its not working
I'm using the 3.1.3
My flutter version:
Flutter 3.13.9 • channel stable • https://github.com/flutter/flutter.git Framework • revision d211f42860 (6 weeks ago) • 2023-10-25 13:42:25 -0700 Engine • revision 0545f8705d Tools • Dart 3.1.5 • DevTools 2.25.0
You can test the live website here: https://test-3e440.web.app/
This is the full code:
`import 'package:flutter/material.dart';
import 'package:flutter_google_street_view/flutter_google_street_view.dart';
void main() {
runApp(const MaterialApp(home: MyApp()));
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@OverRide
State createState() => _MyAppState();
}
class _MyAppState extends State {
StreetViewController? controller;
@OverRide
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
Expanded(
child: Column(
children: [
const Text("Test"),
TextButton(
onPressed: () {
print("Going to oklahoma city");
controller?.setPosition(position: const LatLng(35.4643169,-97.521107));
},
child: const Text("Go Oklahoma City"),
),
],
),
),
Expanded(
flex: 2,
child: FlutterGoogleStreetView(
initPos: const LatLng(41.802823,-87.9148869),
onStreetViewCreated: (o) {
print('Street view created');
controller = o;
o.setPosition(position: const LatLng(38.5732278,-90.2841496));
},
),
),
],
),
);
}
}`
In localhost its working but when i build release and deployed it its not working
I'm using the 3.1.3
My flutter version:
Flutter 3.13.9 • channel stable • https://github.com/flutter/flutter.git Framework • revision d211f42860 (6 weeks ago) • 2023-10-25 13:42:25 -0700 Engine • revision 0545f8705d Tools • Dart 3.1.5 • DevTools 2.25.0You can test the live website here: https://test-3e440.web.app/
This is the full code:
`import 'package:flutter/material.dart';
import 'package:flutter_google_street_view/flutter_google_street_view.dart';
void main() {
runApp(const MaterialApp(home: MyApp()));
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@OverRide
State createState() => _MyAppState();
}
class _MyAppState extends State {
StreetViewController? controller;
@OverRide
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
Expanded(
child: Column(
children: [
const Text("Test"),
TextButton(
onPressed: () {
print("Going to oklahoma city");
controller?.setPosition(position: const LatLng(35.4643169,-97.521107));
},
child: const Text("Go Oklahoma City"),
),
],
),
),
Expanded(
flex: 2,
child: FlutterGoogleStreetView(
initPos: const LatLng(41.802823,-87.9148869),
onStreetViewCreated: (o) {
print('Street view created');
controller = o;
o.setPosition(position: const LatLng(38.5732278,-90.2841496));
},
),
),
],
),
);
}
}`