Skip to content

Commit ba0cd64

Browse files
committed
Prepare drift 2.32.1 release
1 parent f561711 commit ba0cd64

8 files changed

Lines changed: 13 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ lcov.info
77
pubspec.lock
88
*/**/pubspec.lock
99
.dart_tool/
10+
devtools_options.yaml
1011

1112
benchmark_results.json
1213
.flutter-plugins

drift/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.32.1
2+
3+
- DevTools extension: Make error messages selectable.
4+
15
## 2.32.0
26

37
- __Potentially breaking change__ Migrate to version 3.x of the `sqlite3` package.

drift/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: drift
22
description: Drift is a reactive library to store relational data in Dart and Flutter applications.
3-
version: 2.32.0
3+
version: 2.32.1
44
repository: https://github.com/simolus3/drift
55
homepage: https://drift.simonbinder.eu/
66
issue_tracker: https://github.com/simolus3/drift/issues

drift_dev/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 2.33.0-wip
1+
## 2.32.1
22

33
- For view columns referencing table columns as an alias, we now copy nullability
44
and type converters from the source column ([#3765](https://github.com/simolus3/drift/issues/3765)).

drift_dev/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: drift_dev
22
description: Dev-dependency for users of drift. Contains the generator and development tools.
3-
version: 2.33.0-wip
3+
version: 2.32.1
44
repository: https://github.com/simolus3/drift
55
homepage: https://drift.simonbinder.eu/
66
issue_tracker: https://github.com/simolus3/drift/issues

extras/drift_devtools_extension/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class _InfoButton extends StatelessWidget {
8989
context: context,
9090
applicationName: 'Drift extensions for DevTools',
9191
children: [
92-
Text.rich(
92+
SelectableText.rich(
9393
TextSpan(
9494
children: [
9595
_text(

extras/drift_devtools_extension/lib/src/list.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class _DatabaseListState extends ConsumerState<DatabaseList> {
114114
loading: () => const Center(child: CircularProgressIndicator()),
115115
error: (err, stack) => Padding(
116116
padding: _tilePadding,
117-
child: Text('Could not load databases: $err\n$stack'),
117+
child: SelectableText('Could not load databases: $err\n$stack'),
118118
),
119119
data: (databases) {
120120
return Scrollbar(
@@ -165,7 +165,7 @@ class _DatabaseEntry extends ConsumerWidget {
165165
child: ListTile(
166166
title: Text(database.typeName),
167167
subtitle: fileName != null && lineNumber != null
168-
? Text('$fileName:$lineNumber')
168+
? SelectableText('$fileName:$lineNumber')
169169
: null,
170170
),
171171
),

extras/drift_devtools_extension/lib/src/schema_validator.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ class DatabaseSchemaCheck extends ConsumerWidget {
137137
TextSpan(text: message),
138138
],
139139
)),
140-
AsyncError(:var error) =>
141-
Text('The schema could not be validated due to an error: $error'),
140+
AsyncError(:var error) => SelectableText(
141+
'The schema could not be validated due to an error: $error'),
142142
_ => SelectableText.rich(TextSpan(
143143
text: 'By validating your schema, you can ensure that the current '
144144
'state of the database in your app (after migrations ran) '

0 commit comments

Comments
 (0)