1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-22 22:43:22 +00:00

Start Flutter update

This commit is contained in:
Pierre HUBERT 2021-03-13 15:14:54 +01:00
parent fb80f3bd52
commit 819e2a7590
24 changed files with 140 additions and 189 deletions

View File

@ -41,7 +41,7 @@ abstract class BaseSerializationHelper<T extends SerializableElement> {
try {
final file = await _getFilePath();
if (!await file.exists()) return _cache = List();
if (!await file.exists()) return _cache = [];
final List<dynamic> json = jsonDecode(await file.readAsString());
_cache = json.cast<Map<String, dynamic>>().map(parse).toList();
@ -49,7 +49,7 @@ abstract class BaseSerializationHelper<T extends SerializableElement> {
_cache.sort();
} catch (e, s) {
print("Failed to read serialized data! $e => $s");
_cache = List();
_cache = [];
}
}

View File

@ -109,7 +109,7 @@ class UsersHelper {
/// the server, otherwise cached data will be used if available
Future<UsersList> getUsersInfo(List<int> users,
{bool forceDownload = false}) async {
List<int> toDownload = List();
List<int> toDownload = [];
UsersList list = UsersList();
// Check cache

View File

@ -5,7 +5,7 @@ import 'dart:collection';
/// @author Pierre HUBERT
class AbstractList<E> extends ListBase<E> {
final _list = List<E>();
final _list = <E>[];
int get length => _list.length;

View File

@ -9,7 +9,7 @@ import 'package:comunic/models/comment.dart';
/// @author Pierre HUBERT
class CommentsList extends ListBase<Comment> {
List<Comment> _list = List();
List<Comment> _list = [];
int get length => _list.length;

View File

@ -7,7 +7,7 @@ import 'package:comunic/models/conversation_message.dart';
/// @author Pierre HUBERT
class ConversationMessagesList extends ListBase<ConversationMessage> {
final List<ConversationMessage> _list = List();
final List<ConversationMessage> _list = [];
set length(int v) => _list.length = v;

View File

@ -8,7 +8,7 @@ import 'package:comunic/models/conversation.dart';
/// @author Pierre HUBERT
class ConversationsList extends ListBase<Conversation> {
final List<Conversation> _list = List();
final List<Conversation> _list = [];
UsersList users;
set length(l) => _list.length = l;

View File

@ -7,7 +7,7 @@ import 'package:comunic/models/friend.dart';
/// @author Pierre HUBERT
class FriendsList extends ListBase<Friend> {
List<Friend> _list = List();
List<Friend> _list = [];
int get length => _list.length;

View File

@ -9,7 +9,7 @@ import 'package:comunic/models/post.dart';
/// @author Pierre HUBERT
class PostsList extends ListBase<Post> {
List<Post> _list = List();
List<Post> _list = [];
int get length => _list.length;

View File

@ -7,7 +7,7 @@ import 'package:comunic/models/user.dart';
/// @author Pierre HUBERT
class UsersList extends ListBase<User> {
List<User> _list = List();
List<User> _list = [];
int get length => _list.length;

View File

@ -94,7 +94,7 @@ Future<BytesFile> showPickFileDialog({
assert(allowedMimeTypes != null);
// Get the list of allowed extension
final allowedExtensions = List<String>();
final allowedExtensions = <String>[];
for (var mime in allowedExtensions) {
final ext = extensionFromMime(mime);
if (ext != mime) allowedExtensions.add(ext);

View File

@ -79,7 +79,7 @@ class _ConversationRouteState extends SafeState<ConversationRoute> {
return buildErrorCard(
tr("Could not get conversation information!"),
actions: <Widget>[
FlatButton(
TextButton(
onPressed: _loadConversation,
child: Text(
tr("Try again").toUpperCase(),

View File

@ -146,14 +146,14 @@ class _ResetPasswordBodyState extends SafeState<_ResetPasswordBody> {
children: <Widget>[
Text(tr("Here are your options to reset your account:")),
_Spacer(),
OutlineButton.icon(
OutlinedButton.icon(
onPressed: _openSendEmailDialog,
icon: Icon(Icons.email),
label: Text(tr("Send us an email to ask for help")),
),
_Spacer(visible: _hasSecurityQuestions),
_hasSecurityQuestions
? OutlineButton.icon(
? OutlinedButton.icon(
onPressed: _loadSecurityQuestions,
icon: Icon(Icons.help_outline),
label: Text(tr("Answer your security questions")),
@ -199,7 +199,7 @@ class _ResetPasswordBodyState extends SafeState<_ResetPasswordBody> {
..add(_Spacer())
..addAll(List.generate(_questions.length, _buildSecurityQuestionField))
..add(_Spacer())
..add(OutlineButton(
..add(OutlinedButton(
onPressed: _canSubmitAnswers ? _submitSecurityAnswers : null,
child: Text(tr("Submit")),
)),

View File

@ -201,7 +201,6 @@ class _UpdateConversationScreen extends State<UpdateConversationScreen> {
subtitle: _admins.contains(user.id) ? tr("Admin") : tr("Member"),
trailing: _canAddMembers
? PopupMenuButton<_MembersMenuChoices>(
captureInheritedThemes: false,
onSelected: (choice) => _membersMenuItemSelected(user, choice),
itemBuilder: (c) => <PopupMenuEntry<_MembersMenuChoices>>[
PopupMenuItem(

View File

@ -1,4 +1,3 @@
import 'package:comunic/enums/post_kind.dart';
import 'package:comunic/enums/post_target.dart';
import 'package:comunic/enums/post_visibility_level.dart';
@ -12,7 +11,7 @@ import 'package:comunic/utils/files_utils.dart';
import 'package:comunic/utils/intl_utils.dart';
import 'package:comunic/utils/post_utils.dart';
import 'package:comunic/utils/ui_utils.dart';
import 'package:file_picker_cross/file_picker_cross.dart';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
@ -278,15 +277,18 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> {
/// Pick a PDF for the new post
Future<void> _pickPDFForPost() async {
try {
final picker = await FilePickerCross.importFromStorage(
type: FileTypeCross.custom,
fileExtension: "pdf",
final file = await FilePicker.platform.pickFiles(
type: FileType.custom,
allowedExtensions: ["pdf"],
withData: true,
);
if (file == null || file.files.isEmpty) return;
_resetPostSelection();
setState(() {
this._postPDF = picker.toUint8List();
this._postPDF = file.files.first.bytes;
});
} catch (e, stack) {
print("Pick PDF error: $e\n$stack");

View File

@ -8,8 +8,8 @@ import 'package:flutter/material.dart';
/// @author Pierre HUBERT
abstract class SafeState<T extends StatefulWidget> extends State<T> {
final _subscriptions = List<StreamSubscription>();
final _timers = List<Timer>();
final _subscriptions = <StreamSubscription>[];
final _timers = <Timer>[];
bool _unmounted = false;

View File

@ -123,7 +123,7 @@ class _UserPageTabletState extends State<UserPageTablet> {
// Friends list of the user
_userInfo.isFriendsListPublic
? Expanded(
child: OutlineButton.icon(
child: OutlinedButton.icon(
onPressed: () => MainController.of(context)
.openUserFriendsList(_userInfo.id),
icon: Icon(Icons.group),

View File

@ -27,7 +27,7 @@ class TextRichContentWidget extends StatelessWidget {
static List<TextSpan> _parse(String text, TextStyle style) {
if (style == null) style = TextStyle();
List<TextSpan> list = List();
List<TextSpan> list = [];
String currString = "";
text.split("\n").forEach((f) {

View File

@ -55,7 +55,7 @@ class TextWidget extends StatelessWidget {
List<InlineSpan> _parseLinks(
BuildContext context, String text, TextStyle style) {
var buff = StringBuffer();
final list = new List<InlineSpan>();
final list = <InlineSpan>[];
// Change word function
final changeWordType = () {

View File

@ -27,7 +27,7 @@ class _UserWritingInConvNotifierState
extends SafeState<UserWritingInConvNotifier> {
final _usersInfo = UsersList();
final _list = List();
final _list = [];
@override
void initState() {

View File

@ -226,7 +226,7 @@ class _Element {
/// Note : if text is not null, children must be empty !!!
String text;
final _ElementStyle style;
final List<_Element> children = List();
final List<_Element> children = [];
_Element({@required this.style, this.text});

View File

@ -4,7 +4,7 @@
/// Transform a list of dynamic thins into something a list of ints
List<int> listToIntList(List<dynamic> srcList) {
List<int> list = List();
List<int> list = [];
srcList.forEach((e) {
list.add(int.parse(e));
@ -15,7 +15,7 @@ List<int> listToIntList(List<dynamic> srcList) {
/// Find the list of missing elements of a [testList] from a [srcList]
List<T> findMissingFromList<T>(List<T> srcList, List<T> testList) {
List<T> dest = List();
List<T> dest = [];
testList.forEach((f) {
if (!srcList.contains(f) && !dest.contains(f)) dest.add(f);

View File

@ -80,11 +80,11 @@ void showImageFullScreen(BuildContext context, String url) {
/// Show simple snack
void showSimpleSnack(BuildContext context, String message) {
Scaffold.of(context).showSnackBar(SnackBar(content: Text(message)));
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(message)));
}
void snack(BuildContext context, String message) {
Scaffold.of(context).showSnackBar(SnackBar(content: Text(message)));
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(message)));
}
/// Show an alert dialog to ask the user to enter a string
@ -194,7 +194,7 @@ Future<bool> showConfirmDialog({
if (title == null) title = tr("Confirm operation");
// Avoid potential theme issues
final scaffold = Scaffold.of(context, nullOk: true);
final scaffold = Scaffold.maybeOf(context);
final ctx = scaffold != null ? scaffold.context : context;
final result = await showDialog<bool>(

View File

@ -21,98 +21,91 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0-nullsafety.1"
version: "2.5.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.1"
version: "2.1.0"
cached_network_image:
dependency: "direct main"
description:
name: cached_network_image
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.5.1"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.3"
version: "1.1.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.1"
version: "1.2.0"
chewie:
dependency: "direct main"
description:
name: chewie
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.2"
version: "1.0.0"
chewie_audio:
dependency: "direct main"
description:
name: chewie_audio
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
version: "1.2.0"
clipboard:
dependency: "direct main"
description:
name: clipboard
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2+8"
version: "0.1.3"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.1"
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0-nullsafety.3"
version: "1.15.0"
connectivity:
dependency: "direct main"
description:
name: connectivity
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
connectivity_for_web:
dependency: transitive
description:
name: connectivity_for_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.1+4"
version: "3.0.2"
connectivity_macos:
dependency: transitive
description:
name: connectivity_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0+7"
version: "0.2.0"
connectivity_platform_interface:
dependency: transitive
description:
name: connectivity_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.6"
version: "2.0.1"
convert:
dependency: transitive
description:
@ -133,28 +126,21 @@ packages:
name: csslib
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.2"
version: "0.17.0"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.0.2"
dio:
dependency: "direct main"
description:
name: dio
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.10"
disk_space:
dependency: transitive
description:
name: disk_space
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.3"
version: "4.0.0-beta7"
emoji_picker:
dependency: "direct main"
description:
@ -168,49 +154,35 @@ packages:
name: event_bus
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
version: "2.0.0"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.1"
version: "1.2.0"
ffi:
dependency: transitive
description:
name: ffi
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
version: "1.0.0"
file:
dependency: transitive
description:
name: file
url: "https://pub.dartlang.org"
source: hosted
version: "5.2.1"
file_chooser:
dependency: transitive
description:
name: file_chooser
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.6"
version: "6.1.0"
file_picker:
dependency: "direct main"
description:
name: file_picker
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.6"
file_picker_cross:
dependency: "direct main"
description:
name: file_picker_cross
url: "https://pub.dartlang.org"
source: hosted
version: "4.2.8"
version: "3.0.0"
filesize:
dependency: "direct main"
description:
@ -236,7 +208,7 @@ packages:
name: flutter_cache_manager
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.1.2"
flutter_colorpicker:
dependency: "direct main"
description:
@ -257,7 +229,7 @@ packages:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.11"
version: "2.0.0"
flutter_test:
dependency: "direct dev"
description: flutter
@ -281,21 +253,21 @@ packages:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.14.0+4"
version: "0.15.0"
http:
dependency: transitive
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.2"
version: "0.13.0"
http_parser:
dependency: "direct main"
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.4"
version: "4.0.0"
identicon:
dependency: "direct main"
description:
@ -316,56 +288,49 @@ packages:
name: image_picker
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.7+22"
version: "0.7.2+1"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.6"
import_js_library:
dependency: transitive
description:
name: import_js_library
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "2.0.1"
intl:
dependency: "direct main"
description:
name: intl
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.1"
version: "0.17.0"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.2"
version: "0.6.3"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10-nullsafety.1"
version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.3"
version: "1.3.0"
mime:
dependency: "direct main"
description:
name: mime
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.7"
version: "1.0.0"
octo_image:
dependency: transitive
description:
@ -379,70 +344,70 @@ packages:
name: package_info
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.3+4"
version: "2.0.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.1"
version: "1.8.0"
path_provider:
dependency: "direct main"
description:
name: path_provider
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.27"
version: "2.0.1"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+2"
version: "2.0.0"
path_provider_macos:
dependency: transitive
description:
name: path_provider_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4+8"
version: "2.0.0"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
version: "2.0.1"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4+3"
version: "2.0.0"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.2"
version: "1.11.0"
permission_handler:
dependency: "direct main"
description:
name: permission_handler
url: "https://pub.dartlang.org"
source: hosted
version: "5.1.0+2"
version: "6.1.0"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
version: "3.1.0"
petitparser:
dependency: transitive
description:
@ -456,35 +421,35 @@ packages:
name: photo_view
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.3"
version: "0.11.1"
pie_chart:
dependency: "direct main"
description:
name: pie_chart
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.1"
version: "5.0.0"
platform:
dependency: transitive
description:
name: platform
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
version: "3.0.0"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
version: "2.0.0"
process:
dependency: transitive
description:
name: process
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.13"
version: "4.1.0"
random_string:
dependency: "direct main"
description:
@ -512,28 +477,14 @@ packages:
name: settings_ui
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.0"
share:
dependency: transitive
description:
name: share
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.5+4"
version: "0.6.0"
shared_preferences:
dependency: "direct main"
description:
name: shared_preferences
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.12+4"
shared_preferences_linux:
dependency: transitive
description:
name: shared_preferences_linux
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.2+4"
version: "0.5.7+3"
shared_preferences_macos:
dependency: transitive
description:
@ -555,13 +506,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2+7"
shared_preferences_windows:
dependency: transitive
description:
name: shared_preferences_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.2+3"
sky_engine:
dependency: transitive
description: flutter
@ -573,112 +517,112 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.2"
version: "1.8.0"
sqflite:
dependency: "direct main"
description:
name: sqflite
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.2+3"
version: "2.0.0+2"
sqflite_common:
dependency: transitive
description:
name: sqflite_common
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3+1"
version: "2.0.0+2"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0-nullsafety.1"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.1"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.1"
version: "1.1.0"
synchronized:
dependency: transitive
description:
name: synchronized
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0+2"
version: "3.0.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.1"
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19-nullsafety.2"
version: "0.2.19"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.3"
version: "1.3.0"
url_launcher:
dependency: "direct main"
description:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "5.7.10"
version: "6.0.2"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+4"
version: "2.0.0"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+9"
version: "2.0.0"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.9"
version: "2.0.2"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.5+3"
version: "2.0.0"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+3"
version: "2.0.0"
uuid:
dependency: transitive
description:
@ -692,35 +636,35 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.3"
version: "2.1.0"
version:
dependency: "direct main"
description:
name: version
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
video_player:
dependency: "direct main"
description:
name: video_player
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "2.0.2"
video_player_platform_interface:
dependency: transitive
description:
name: video_player_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
version: "4.0.0"
video_player_web:
dependency: transitive
description:
name: video_player_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4+1"
version: "2.0.0"
video_thumbnail:
dependency: "direct main"
description:
@ -734,21 +678,28 @@ packages:
name: wakelock
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.1+1"
version: "0.4.0"
wakelock_macos:
dependency: transitive
description:
name: wakelock_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
wakelock_platform_interface:
dependency: transitive
description:
name: wakelock_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0+1"
version: "0.2.0"
wakelock_web:
dependency: transitive
description:
name: wakelock_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0+3"
version: "0.2.0"
web_socket_channel:
dependency: "direct main"
description:
@ -762,14 +713,14 @@ packages:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.4+1"
version: "2.0.3"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
version: "0.2.0"
xml:
dependency: transitive
description:
@ -778,5 +729,5 @@ packages:
source: hosted
version: "4.5.1"
sdks:
dart: ">=2.10.2 <2.11.0"
flutter: ">=1.22.2 <2.0.0"
dart: ">=2.12.0 <3.0.0"
flutter: ">=1.24.0-10"

View File

@ -28,35 +28,35 @@ dependencies:
shared_preferences: ^0.5.6+3
# SQLite database is used for caching
sqflite: ^1.3.0
sqflite: ^2.0.0+2
# Image picker is used whenever the user wants to send an image
image_picker: ^0.6.7+22
image_picker: ^0.7.2+1
# The HTTP client is used to make requests on the Comunic API
dio: ^3.0.9
http_parser: ^3.1.4
dio: ^4.0.0-beta7
http_parser: ^4.0.0
# This plugins allows to load remote images
cached_network_image: ^2.0.0
# URL launcher is useful to open URL in the phone browser
url_launcher: ^5.4.2
url_launcher: ^6.0.2
# Allows to parse HTML special characters
html: ^0.14.0+3
html: ^0.15.0
# Module that display the charts for the surveys
pie_chart: ^4.0.1
pie_chart: ^5.0.0
# Get current system language
intl: ^0.16.1
intl: ^0.17.0
# Parse emojies
flutter_emoji: ^2.2.1+1
# Build settings UI
settings_ui: ^0.5.0
settings_ui: ^0.6.0
# Generate identicons
identicon: ^0.1.1
@ -65,35 +65,34 @@ dependencies:
random_string: ^2.0.1
# Display zoomable images
photo_view: ^0.10.3
photo_view: ^0.11.1
# Check Internet connection
connectivity: ^2.0.2
connectivity: ^3.0.2
# Establish WebSocket connections
web_socket_channel: ^1.1.0
# Events manager
event_bus: ^1.1.1
event_bus: ^2.0.0
# WebRTC calls
flutter_webrtc: ^0.5.8
# Prevent phone from auto-locking during calls
wakelock: ^0.2.1+1
wakelock: ^0.4.0
# Pick any kind of file
file_picker: ^2.1.6
file_picker_cross: ^4.2.8
file_picker: ^3.0.0
# Get information about current version
package_info: ^0.4.3+4
package_info: ^2.0.0
# Version manager
version: ^1.2.0
# Get path to temporary files
path_provider: ^1.6.27
path_provider: ^2.0.1
# Format file size
filesize: ^1.0.4
@ -102,12 +101,12 @@ dependencies:
clipboard: ^0.1.2+8
# Video / Audio player
video_player: ^1.0.1
video_player: ^2.0.2
chewie_audio: ^1.1.2
chewie: ^0.12.2
chewie: ^1.0.0
# Determine file mime type
mime: ^0.9.7
mime: ^1.0.0
# Create video thumbnails
video_thumbnail: ^0.2.5+1
@ -116,7 +115,7 @@ dependencies:
record_mp3: ^2.1.0
# Request permissions
permission_handler: ^5.1.0+2
permission_handler: ^6.1.0
# Emojies picker
emoji_picker: ^0.1.0