Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/audioplayers/example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ linter:
do_not_use_environment: false

analyzer:
errors:
deprecated_member_use: ignore
exclude:
- 'build/**'
- 'android/**'
Expand Down
2 changes: 2 additions & 0 deletions packages/connectivity_plus/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include: ../../analysis_options_plus.yaml

analyzer:
errors:
deprecated_member_use: ignore
exclude:
- 'build/**'
- 'android/**'
Expand Down
2 changes: 2 additions & 0 deletions packages/device_info_plus/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include: ../../analysis_options_plus.yaml

analyzer:
errors:
deprecated_member_use: ignore
exclude:
- 'build/**'
- 'android/**'
Expand Down
2 changes: 2 additions & 0 deletions packages/flutter_secure_storage/example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include: package:very_good_analysis/analysis_options.yaml

analyzer:
errors:
deprecated_member_use: ignore
exclude:
- 'build/**'
- 'android/**'
Expand Down
1 change: 1 addition & 0 deletions packages/flutter_tts/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ analyzer:
strict-inference: true
strict-raw-types: true
errors:
deprecated_member_use: ignore
unused_import: error
unused_local_variable: error
dead_code: error
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ analyzer:
- 'macos/**'
- 'linux/**'
errors:
deprecated_member_use: ignore
# treat missing required parameters as a warning (not a hint)
missing_required_param: warning
# treat missing returns as a warning (not a hint)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ analyzer:
- 'macos/**'
- 'linux/**'
errors:
deprecated_member_use: ignore
# treat missing required parameters as a warning (not a hint)
missing_required_param: warning
# treat missing returns as a warning (not a hint)
Expand Down
2 changes: 2 additions & 0 deletions packages/geolocator/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
include: package:flutter_lints/flutter.yaml

analyzer:
errors:
deprecated_member_use: ignore
exclude:
# Ignore generated files
- '**/*.g.dart'
Expand Down
2 changes: 2 additions & 0 deletions packages/keyboard_detection/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
include: package:flutter_lints/flutter.yaml

analyzer:
errors:
deprecated_member_use: ignore
exclude:
- 'build/**'
- 'android/**'
Expand Down
2 changes: 2 additions & 0 deletions packages/network_info_plus/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include: ../../analysis_options_plus.yaml

analyzer:
errors:
deprecated_member_use: ignore
exclude:
- 'build/**'
- 'android/**'
Expand Down
2 changes: 2 additions & 0 deletions packages/package_info_plus/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include: ../../analysis_options_plus.yaml

analyzer:
errors:
deprecated_member_use: ignore
exclude:
- 'build/**'
- 'android/**'
Expand Down
2 changes: 2 additions & 0 deletions packages/permission_handler/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ linter:
- public_member_api_docs

analyzer:
errors:
deprecated_member_use: ignore
exclude:
- 'build/**'
- 'android/**'
Expand Down
5 changes: 2 additions & 3 deletions packages/sqflite/example/integration_test/sqflite_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ void main() {
//await devVerbose();
final path = join('test_missing_sub_dir', 'simple.db');
try {
await Directory(
join(await getDatabasesPath(), dirname(path)),
).delete(recursive: true);
await Directory(join(await getDatabasesPath(), dirname(path)))
.delete(recursive: true);
} catch (_) {}
Database? db;
try {
Expand Down
7 changes: 3 additions & 4 deletions packages/sqflite/example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:sqflite_tizen_example/batch_test_page.dart';
import 'package:sqflite_tizen_example/deprecated_test_page.dart';
import 'package:sqflite_tizen_example/exception_test_page.dart';
Expand Down Expand Up @@ -223,9 +223,8 @@ class _MyHomePageState extends State<MyHomePage> {

// await Navigator.of(context).pushNamed(testExpRoute);
// await Navigator.of(context).pushNamed(testRawRoute);
final future = Navigator.of(
context,
).pushNamed(debugAutoStartRouteName!);
final future = Navigator.of(context)
.pushNamed(debugAutoStartRouteName!);
// ignore: deprecated_member_use_from_same_package
debugAutoStartRouteName = null;
await future;
Expand Down
16 changes: 6 additions & 10 deletions packages/sqflite/example/lib/manual_test_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:typed_data';

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:path/path.dart' hide context;
import 'package:sqflite/sqflite.dart';
// ignore: implementation_imports
Expand Down Expand Up @@ -144,24 +144,21 @@ class _ManualTestPageState extends State<ManualTestPage> {
final db = await _openDatabase();
await db.execute('BEGIN EXCLUSIVE');
},
summary:
'Execute than exit or hot-restart the application. Open the database if needed',
summary: 'Execute than exit or hot-restart the application. Open the database if needed',
),
SqfMenuItem(
'close',
() async {
await _closeDatabase();
},
summary:
'Execute after starting then exit the app using the back button on Android and restart from the launcher.',
summary: 'Execute after starting then exit the app using the back button on Android and restart from the launcher.',
),
SqfMenuItem(
'delete',
() async {
await _deleteDatabase();
},
summary:
'Try open (then optionally) delete, exit or hot-restart then delete then open',
summary: 'Try open (then optionally) delete, exit or hot-restart then delete then open',
),
SqfMenuItem('log level: none', () async {
// ignore: deprecated_member_use
Expand Down Expand Up @@ -234,9 +231,8 @@ class _ManualTestPageState extends State<ManualTestPage> {

var ok = (await getValue(id)).length == blob.length;
if (mounted) {
ScaffoldMessenger.of(
context,
).showSnackBar(SnackBar(content: Text('$size: $ok')));
ScaffoldMessenger.of(context)
.showSnackBar(SnackBar(content: Text('$size: $ok')));
}
} finally {
await db.close();
Expand Down
3 changes: 1 addition & 2 deletions packages/sqflite/example/lib/open_test_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,7 @@ class OpenTestPage extends TestPage {
});

test('In memory database', () async {
const inMemoryPath =
inMemoryDatabasePath; // tried null without success, as it crashes on Android
const inMemoryPath = inMemoryDatabasePath; // tried null without success, as it crashes on Android
const path = inMemoryPath;

var db = await openDatabase(path);
Expand Down
15 changes: 7 additions & 8 deletions packages/sqflite/example/lib/src/expect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ class TestFailure {
/// The type used for functions that can be used to build up error reports
/// upon failures in [expect].
@Deprecated('Will be removed in 0.13.0.')
typedef ErrorFormatter =
String Function(
dynamic actual,
Matcher matcher,
String? reason,
Map matchState,
bool verbose,
);
typedef ErrorFormatter = String Function(
dynamic actual,
Matcher matcher,
String? reason,
Map matchState,
bool verbose,
);

/// Assert that [actual] matches [matcher].
///
Expand Down
2 changes: 1 addition & 1 deletion packages/sqflite/example/lib/src/item_widget.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:sqflite_tizen_example/model/item.dart';

/// Item widget.
Expand Down
2 changes: 1 addition & 1 deletion packages/sqflite/example/lib/src/main_item_widget.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:sqflite_tizen_example/model/main_item.dart';

/// Main item widget.
Expand Down
2 changes: 1 addition & 1 deletion packages/sqflite/example/lib/test_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:meta/meta.dart';
import 'package:sqflite/sqflite.dart';
import 'package:sqflite_common/sqflite_dev.dart';
Expand Down
3 changes: 2 additions & 1 deletion packages/sqflite/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Demonstrates how to use the sqflite_tizen plugin.
publish_to: "none"

environment:
sdk: ^3.12.0
sdk: ^3.13.0
flutter: ">=3.44.0"

dependencies:
Expand All @@ -17,6 +17,7 @@ dependencies:
path: ../
synchronized:
matcher:
material_ui: ^1.5.0
meta:

dev_dependencies:
Expand Down
2 changes: 2 additions & 0 deletions packages/wakelock_plus/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ linter:
public_member_api_docs: true

analyzer:
errors:
deprecated_member_use: ignore
exclude:
- 'build/**'
- 'android/**'
Expand Down