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