changed name and icon of app
time
@@ -4,7 +4,7 @@
|
||||
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> -->
|
||||
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" /> -->
|
||||
<application
|
||||
android:label="fforte"
|
||||
android:label="LUPUS"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
|
||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
app-release.apk
BIN
assets/icons/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
assets/icons/logo-lupus.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
fforte_data/logo-lupus.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
@@ -4,7 +4,6 @@ import 'package:fforte/screens/addCam/add_cam_main.dart';
|
||||
import 'package:fforte/screens/intro_screen.dart';
|
||||
import 'package:fforte/screens/settings.dart';
|
||||
import 'package:fforte/screens/viewEntries/view_cams.dart';
|
||||
import 'package:fforte/services/notification_service.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flex_color_scheme/flex_color_scheme.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
@@ -17,10 +16,6 @@ import 'l10n/l10n.dart';
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
// notifications
|
||||
NotificationService().initNotification();
|
||||
|
||||
|
||||
|
||||
SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
bool isFirstLaunch = prefs.getBool('isFirstLaunch') ?? true;
|
||||
@@ -38,7 +33,7 @@ class MyApp extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'FFOrte',
|
||||
title: 'LUPUS',
|
||||
theme: FlexThemeData.light(scheme: FlexScheme.gold, useMaterial3: true),
|
||||
darkTheme:
|
||||
FlexThemeData.dark(scheme: FlexScheme.greenM3, useMaterial3: true),
|
||||
|
||||
@@ -29,9 +29,9 @@ class _TrackingState extends State<Tracking> {
|
||||
@override
|
||||
void initState() {
|
||||
// TODO debugging (i guess)
|
||||
pathList.add(
|
||||
LatLng(widget.startPosition.latitude, widget.startPosition.longitude),
|
||||
);
|
||||
// pathList.add(
|
||||
// LatLng(widget.startPosition.latitude, widget.startPosition.longitude),
|
||||
// );
|
||||
|
||||
if (widget.weg.text.isNotEmpty) {
|
||||
for (var element in widget.weg.text.split(";")) {
|
||||
@@ -78,10 +78,11 @@ class _TrackingState extends State<Tracking> {
|
||||
// notification handling for tracking in background notification
|
||||
await NotificationService().initNotification();
|
||||
|
||||
if (mounted)
|
||||
if (mounted) {
|
||||
NotificationService().showNotification(
|
||||
title: AppLocalizations.of(context)!.trackingRunningInBackground,
|
||||
);
|
||||
}
|
||||
|
||||
positionStream = Geolocator.getPositionStream(
|
||||
locationSettings: AndroidSettings(
|
||||
@@ -98,9 +99,9 @@ class _TrackingState extends State<Tracking> {
|
||||
),
|
||||
).listen((Position? position) {
|
||||
if (position != null) {
|
||||
// pathList.add(LatLng(position.latitude, position.longitude));
|
||||
setState(() {
|
||||
pathList.add(LatLng(rand.nextInt(5) + 40, position.longitude));
|
||||
pathList.add(LatLng(position.latitude, position.longitude));
|
||||
// pathList.add(LatLng(rand.nextInt(5) + 40, position.longitude));
|
||||
});
|
||||
} else {
|
||||
if (mounted) {
|
||||
|
||||
@@ -49,4 +49,5 @@ flutter:
|
||||
|
||||
assets:
|
||||
- assets/images/
|
||||
- assets/icons/
|
||||
|
||||
|
||||