Skip to content

Commit e8e3e49

Browse files
committed
update for flutter 3.27
1 parent 2ddc2fa commit e8e3e49

File tree

12 files changed

+20
-90
lines changed

12 files changed

+20
-90
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Flutter
3030
uses: subosito/flutter-action@v2
3131
with:
32-
flutter-version: 3.24
32+
flutter-version: 3.27
3333
cache: true
3434
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
3535
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"

drift_dev/lib/src/analysis/resolver/dart/helper.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ bool isFromDrift(DartType type) {
191191

192192
extension IsFromDrift on Element {
193193
bool get isFromDefaultTable {
194+
// ignore: deprecated_member_use
194195
final parent = enclosingElement;
195196

196197
return parent is ClassElement &&

drift_dev/lib/src/analysis/resolver/dart/view.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ class DartViewResolver extends LocalElementResolver<DiscoveredDartView> {
5858
final typeSystem = field.library.typeSystem;
5959

6060
if (type is! InterfaceType ||
61-
!typeSystem.isAssignableTo(type, knownTypes.tableType)) return null;
61+
!typeSystem.isAssignableTo(type, knownTypes.tableType)) {
62+
return null;
63+
}
6264

6365
if (field.getter != null) {
6466
try {

drift_dev/lib/src/analysis/results/dart.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ class _AddFromAst extends GeneralizingAstVisitor<void> {
588588
}
589589

590590
final element = node.methodName.staticElement;
591+
// ignore: deprecated_member_use
591592
final enclosing = element?.enclosingElement;
592593
if (enclosing is! ExtensionElement || enclosing.name == null) {
593594
return super.visitMethodInvocation(node);

drift_dev/lib/src/backends/analyzer_context_backend.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ class AnalysisContextBackend extends DriftBackend {
179179
await this.context.currentSession.getResolvedLibrary(pathForTemp);
180180

181181
if (result is ResolvedLibraryResult) {
182+
// ignore: deprecated_member_use
182183
return result.element.scope.lookup(reference).getter;
183184
}
184185
} finally {

drift_dev/lib/src/backends/build/backend.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class DriftBuildBackend extends DriftBackend {
110110

111111
if (await _buildStep.canRead(tempDart)) {
112112
final library = await _buildStep.resolver.libraryFor(tempDart);
113-
113+
// ignore: deprecated_member_use
114114
return library.scope.lookup(reference).getter;
115115
} else {
116116
// If there's no temporary file whose imports we can use, then that means

drift_dev/lib/src/writer/import_manager.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class ImportManagerForPartFiles implements ImportManager {
1313
final Map<String, Map<String, Element>> _namedImports = {};
1414

1515
ImportManagerForPartFiles(this.mainLibrary) {
16+
// ignore: deprecated_member_use
1617
for (final import in mainLibrary.libraryImports) {
1718
if (import.prefix case ImportElementPrefix prefix) {
1819
// Not using import.namespace here because that contains the prefix

drift_dev/test/analysis/test_utils.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ class TestBackend extends DriftBackend {
232232
await analysisContext.currentSession.getResolvedLibrary(path);
233233

234234
if (result is ResolvedLibraryResult) {
235+
// ignore: deprecated_member_use
235236
final lookup = result.element.scope.lookup(reference);
236237
return lookup.getter;
237238
}

examples/app/lib/database/tables.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ class ColorConverter extends TypeConverter<Color, int> {
4242
Color fromSql(int fromDb) => Color(fromDb);
4343

4444
@override
45+
// ignore: deprecated_member_use
4546
int toSql(Color value) => value.value;
4647
}

examples/app/lib/screens/home/drawer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class _CategoryDrawerEntry extends ConsumerWidget {
148148
padding: const EdgeInsets.symmetric(horizontal: 8),
149149
child: Material(
150150
color: isActive
151-
? Colors.orangeAccent.withOpacity(0.3)
151+
? Colors.orangeAccent.withValues(alpha: 0.3)
152152
: Colors.transparent,
153153
borderRadius: BorderRadius.circular(8),
154154
child: InkWell(

0 commit comments

Comments
 (0)