Skip to content

Commit

Permalink
Removing FileField and FileEditingController.
Browse files Browse the repository at this point in the history
  • Loading branch information
edufolly committed Mar 31, 2024
1 parent 07ad578 commit da99f9a
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 455 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [3.0.0] - 2024-03-31

* Upgrade to Flutter 3.19.0 and Dart 3.3.0.
* Updating Connectivity Plus to ^6.0.0.
* Removing FileField and FileEditingController.

## [2.7.0] - 2024-02-11

* Updating to Font Awesome 10.7.0.
Expand Down
24 changes: 0 additions & 24 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// TODO(edufolly): Remove this line after the next release of the package.
// ignore_for_file: deprecated_member_use

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
Expand All @@ -19,7 +16,6 @@ import 'package:folly_fields/fields/decimal_field.dart';
import 'package:folly_fields/fields/dropdown_field.dart';
import 'package:folly_fields/fields/duration_field.dart';
import 'package:folly_fields/fields/email_field.dart';
import 'package:folly_fields/fields/file_field.dart';
import 'package:folly_fields/fields/icon_data_field.dart';
import 'package:folly_fields/fields/integer_field.dart';
import 'package:folly_fields/fields/ipv4_field.dart';
Expand Down Expand Up @@ -911,26 +907,6 @@ class MyHomePageState extends State<MyHomePage> {
// [/ListField]
),

CodeLink(
code: code,
tag: 'FileField',
source: 'https://github.com/edufolly/folly_fields/'
'blob/main/lib/fields/file_field.dart',
child:
// [FileField]
FileField(
label: 'Arquivo(imagem)',
enabled: edit,
onSaved: (Uint8List? newValue) {
model.blob = newValue ?? Uint8List(0);
},
thumbnailSize: const Size(256, 256),
showImageThumbnail: true,
type: FileFieldType.image,
),
// [/FileField]
),

CodeLink(
code: code,
tag: 'ChoiceChipField',
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ description: A new Flutter project.

publish_to: 'none'

version: 2.7.0+208
version: 3.0.0+209

environment:
sdk: ">=3.1.0 <4.0.0"
flutter: ">=3.13.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"

dependencies:
# https://pub.dev/packages/connectivity_plus
Expand Down
22 changes: 0 additions & 22 deletions lib/controllers/file_field_controller.dart

This file was deleted.

Loading

0 comments on commit da99f9a

Please sign in to comment.