mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Start update
This commit is contained in:
		@@ -36,7 +36,7 @@ class LoginScaffold extends StatelessWidget {
 | 
			
		||||
        ),
 | 
			
		||||
        scaffoldBackgroundColor: Colors.indigo.shade900,
 | 
			
		||||
        textTheme: TextTheme(
 | 
			
		||||
          body1: TextStyle(color: Colors.white),
 | 
			
		||||
          bodyText2: TextStyle(color: Colors.white),
 | 
			
		||||
          button: TextStyle(color: Colors.white),
 | 
			
		||||
        ),
 | 
			
		||||
      ),
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,3 @@
 | 
			
		||||
import 'dart:io';
 | 
			
		||||
 | 
			
		||||
import 'package:comunic/enums/post_kind.dart';
 | 
			
		||||
import 'package:comunic/enums/post_target.dart';
 | 
			
		||||
@@ -15,6 +14,7 @@ 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:flutter/material.dart';
 | 
			
		||||
import 'package:image_picker/image_picker.dart';
 | 
			
		||||
 | 
			
		||||
/// Widget that allows to create posts
 | 
			
		||||
///
 | 
			
		||||
@@ -51,7 +51,7 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> {
 | 
			
		||||
  bool _isCreating = false;
 | 
			
		||||
  final TextEditingController _postTextController = TextEditingController();
 | 
			
		||||
  PostVisibilityLevel _postVisibilityLevel;
 | 
			
		||||
  File _postImage;
 | 
			
		||||
  PickedFile _postImage;
 | 
			
		||||
  String _postURL;
 | 
			
		||||
  List<int> _postPDF;
 | 
			
		||||
  DateTime _timeEnd;
 | 
			
		||||
@@ -278,13 +278,11 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> {
 | 
			
		||||
  /// Pick a PDF for the new post
 | 
			
		||||
  Future<void> _pickPDFForPost() async {
 | 
			
		||||
    try {
 | 
			
		||||
      final picker = FilePickerCross(
 | 
			
		||||
      final picker = await FilePickerCross.importFromStorage(
 | 
			
		||||
        type: FileTypeCross.custom,
 | 
			
		||||
        fileExtension: "pdf",
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
      if (!await picker.pick()) return;
 | 
			
		||||
 | 
			
		||||
      _resetPostSelection();
 | 
			
		||||
 | 
			
		||||
      setState(() {
 | 
			
		||||
@@ -416,7 +414,9 @@ class _PostOptionWidget extends StatelessWidget {
 | 
			
		||||
      onPressed: onTap,
 | 
			
		||||
      color: hasCustomColor
 | 
			
		||||
          ? customColor
 | 
			
		||||
          : selected ? _ActiveButtonsColor : _InactiveButtonsColor,
 | 
			
		||||
          : selected
 | 
			
		||||
              ? _ActiveButtonsColor
 | 
			
		||||
              : _InactiveButtonsColor,
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,7 @@ class MultiChoicesSettingsTile<T> extends SettingsTile {
 | 
			
		||||
    return SettingsTile(
 | 
			
		||||
      title: title,
 | 
			
		||||
      subtitle: choices.firstWhere((f) => f.id == currentValue).title,
 | 
			
		||||
      onTap: () => _changeValue(context),
 | 
			
		||||
      onPressed: (_) => _changeValue(context),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@ class TextEditSettingsTile extends SettingsTile {
 | 
			
		||||
    return SettingsTile(
 | 
			
		||||
      title: title,
 | 
			
		||||
      subtitle: currValue,
 | 
			
		||||
      onTap: readOnly ? null : () => _changeValue(context),
 | 
			
		||||
      onPressed: (_)=>readOnly ? null : () => _changeValue(context),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -44,7 +44,7 @@ class ConversationWindowContainer extends StatelessWidget {
 | 
			
		||||
          appBar: AppBarWrapper(
 | 
			
		||||
              height: 40,
 | 
			
		||||
              appBar: AppBar(
 | 
			
		||||
                textTheme: TextTheme(title: TextStyle(fontSize: 15)),
 | 
			
		||||
                textTheme: TextTheme(headline6: TextStyle(fontSize: 15)),
 | 
			
		||||
                backgroundColor: appBarBgColor,
 | 
			
		||||
                leading: icon,
 | 
			
		||||
                title: GestureDetector(child: title, onTap: onToggleCollapse),
 | 
			
		||||
 
 | 
			
		||||
@@ -33,7 +33,7 @@ class TextWidget extends StatelessWidget {
 | 
			
		||||
  Widget build(BuildContext context) {
 | 
			
		||||
    if (this.content.isNull || this.content.isEmpty) return Text("");
 | 
			
		||||
 | 
			
		||||
    var usedStyle = style == null ? Theme.of(context).textTheme.body1 : style;
 | 
			
		||||
    var usedStyle = style == null ? Theme.of(context).textTheme.bodyText2 : style;
 | 
			
		||||
 | 
			
		||||
    var content = this.content.parsedString;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user