2022-10-31 17:15:05 +01:00
|
|
|
// SPDX-FileCopyrightText: 2022 Iconica
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
2022-11-25 12:09:38 +01:00
|
|
|
import 'dart:async';
|
|
|
|
|
2022-09-21 09:20:15 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2022-09-21 14:37:16 +02:00
|
|
|
import 'package:flutter_profile/flutter_profile.dart';
|
2022-09-21 09:20:15 +02:00
|
|
|
|
|
|
|
class TestProfileService extends ProfileService {
|
|
|
|
TestProfileService();
|
|
|
|
|
|
|
|
@override
|
2022-09-21 14:08:36 +02:00
|
|
|
void pageBottomAction() {}
|
2022-09-21 09:20:15 +02:00
|
|
|
|
|
|
|
@override
|
2022-09-21 14:08:36 +02:00
|
|
|
void editProfile(
|
|
|
|
User user,
|
2022-09-21 09:20:15 +02:00
|
|
|
String key,
|
2022-11-15 11:20:48 +01:00
|
|
|
String? value,
|
2022-09-21 14:08:36 +02:00
|
|
|
) {}
|
2022-09-21 09:20:15 +02:00
|
|
|
|
|
|
|
@override
|
2022-11-25 12:09:38 +01:00
|
|
|
FutureOr<void> uploadImage(
|
|
|
|
BuildContext context, {
|
2024-02-02 11:07:55 +01:00
|
|
|
// ignore: avoid_positional_boolean_parameters
|
2022-11-25 12:09:38 +01:00
|
|
|
required Function(bool isUploading) onUploadStateChanged,
|
|
|
|
}) {}
|
2024-02-01 11:40:49 +01:00
|
|
|
|
|
|
|
@override
|
2024-02-07 16:31:11 +01:00
|
|
|
FutureOr<bool> changePassword(
|
2024-02-07 16:34:33 +01:00
|
|
|
BuildContext context,
|
|
|
|
String currentPassword,
|
|
|
|
String newPassword,
|
|
|
|
) =>
|
|
|
|
true;
|
2022-09-21 09:20:15 +02:00
|
|
|
}
|