1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +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 { try {
final file = await _getFilePath(); 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()); final List<dynamic> json = jsonDecode(await file.readAsString());
_cache = json.cast<Map<String, dynamic>>().map(parse).toList(); _cache = json.cast<Map<String, dynamic>>().map(parse).toList();
@ -49,7 +49,7 @@ abstract class BaseSerializationHelper<T extends SerializableElement> {
_cache.sort(); _cache.sort();
} catch (e, s) { } catch (e, s) {
print("Failed to read serialized data! $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 /// the server, otherwise cached data will be used if available
Future<UsersList> getUsersInfo(List<int> users, Future<UsersList> getUsersInfo(List<int> users,
{bool forceDownload = false}) async { {bool forceDownload = false}) async {
List<int> toDownload = List(); List<int> toDownload = [];
UsersList list = UsersList(); UsersList list = UsersList();
// Check cache // Check cache

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
/// Transform a list of dynamic thins into something a list of ints /// Transform a list of dynamic thins into something a list of ints
List<int> listToIntList(List<dynamic> srcList) { List<int> listToIntList(List<dynamic> srcList) {
List<int> list = List(); List<int> list = [];
srcList.forEach((e) { srcList.forEach((e) {
list.add(int.parse(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] /// Find the list of missing elements of a [testList] from a [srcList]
List<T> findMissingFromList<T>(List<T> srcList, List<T> testList) { List<T> findMissingFromList<T>(List<T> srcList, List<T> testList) {
List<T> dest = List(); List<T> dest = [];
testList.forEach((f) { testList.forEach((f) {
if (!srcList.contains(f) && !dest.contains(f)) dest.add(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 /// Show simple snack
void showSimpleSnack(BuildContext context, String message) { 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) { 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 /// 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"); if (title == null) title = tr("Confirm operation");
// Avoid potential theme issues // Avoid potential theme issues
final scaffold = Scaffold.of(context, nullOk: true); final scaffold = Scaffold.maybeOf(context);
final ctx = scaffold != null ? scaffold.context : context; final ctx = scaffold != null ? scaffold.context : context;
final result = await showDialog<bool>( final result = await showDialog<bool>(

View File

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

View File

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