some fixes

This commit is contained in:
otsmr 2025-02-08 23:14:23 +01:00
parent fb26379201
commit f4b532e357
4 changed files with 14 additions and 12 deletions

View file

@ -5,8 +5,6 @@ Don't be lonely, get twonly! Send pictures to a friend in real time and be sure
## TODOS bevor first beta ## TODOS bevor first beta
- Send a picture first to only one person -> Kamera button - Send a picture first to only one person -> Kamera button
- Context Menu
- Invitation codes
- Settings - Settings
- Real deployment aufsetzen, direkt auf Netcup? - Real deployment aufsetzen, direkt auf Netcup?
- Firebase Push Notification - Firebase Push Notification
@ -35,7 +33,6 @@ Don't be lonely, get twonly! Send pictures to a friend in real time and be sure
- Send normal images via twonly - Send normal images via twonly
## Pro Version ## Pro Version
- Send and receive unlimited pictures - Send and receive unlimited pictures

View file

@ -1,7 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:twonly/src/model/contacts_model.dart'; import 'package:twonly/src/model/contacts_model.dart';
import 'package:twonly/src/views/contact/contact_verify_view.dart';
class VerifiedShield extends StatelessWidget { class VerifiedShield extends StatelessWidget {
final Contact contact; final Contact contact;
@ -12,13 +11,13 @@ class VerifiedShield extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return GestureDetector( return GestureDetector(
onTap: () { // onTap: () {
Navigator.push(context, MaterialPageRoute( // Navigator.push(context, MaterialPageRoute(
builder: (context) { // builder: (context) {
return ContactVerifyView(contact); // return ContactVerifyView(contact);
}, // },
)); // ));
}, // },
child: Tooltip( child: Tooltip(
message: contact.verified message: contact.verified
? "You verified this contact" ? "You verified this contact"

View file

@ -71,6 +71,8 @@ class ApiProvider {
reconnectionTimer!.cancel(); reconnectionTimer!.cancel();
} }
isAuthenticated = false;
log.info("Trying to connect to the backend $apiUrl!"); log.info("Trying to connect to the backend $apiUrl!");
if (await _connectTo(apiUrl)) { if (await _connectTo(apiUrl)) {
await onConnected(); await onConnected();

View file

@ -202,7 +202,11 @@ class _UserListItem extends State<UserListItem> {
), ),
if (flameCounter > 0) if (flameCounter > 0)
FlameCounterWidget( FlameCounterWidget(
widget.user, flameCounter, widget.maxTotalMediaCounter), widget.user,
flameCounter,
widget.maxTotalMediaCounter,
prefix: true,
),
], ],
), ),
leading: InitialsAvatar(displayName: widget.user.displayName), leading: InitialsAvatar(displayName: widget.user.displayName),