Skip to content

Commit c1752a9

Browse files
committed
Bump version to 1.2.0
1 parent 73293ad commit c1752a9

File tree

10 files changed

+54
-47
lines changed

10 files changed

+54
-47
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 1.2.0-dev
3+
## 1.2.0
44

55
### BREAKING
66

@@ -70,6 +70,8 @@
7070
* Init Translations
7171
7272
### CHANGED
73+
* Remove null checks from WidgetsBinding (Flutter 3.0.0)
74+
* Changed launch to launchUrl for url_launcher package
7375
* Changed default value of `horizontalTitleGap` to 8
7476
* Switch to `titlebar_buttons` package as `window_decorations` is deprecated
7577
* Link to external examples in example.md

example/lib/home_page.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ class _MyHomePageState extends State<MyHomePage> {
132132
.map(
133133
(e) => AdwActionRow(
134134
title: e.key,
135-
onActivated: () =>
136-
launch('https://github.com/${e.value}'),
135+
onActivated: () => launchUrl(
136+
Uri.parse('https://github.com/${e.value}'),
137+
),
137138
),
138139
)
139140
.toList(),

example/pubspec.lock

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ packages:
1414
name: args
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "2.3.0"
17+
version: "2.3.1"
1818
async:
1919
dependency: transitive
2020
description:
@@ -90,35 +90,35 @@ packages:
9090
name: collection
9191
url: "https://pub.dartlang.org"
9292
source: hosted
93-
version: "1.15.0"
93+
version: "1.16.0"
9494
dbus:
9595
dependency: transitive
9696
description:
9797
name: dbus
9898
url: "https://pub.dartlang.org"
9999
source: hosted
100-
version: "0.7.1"
100+
version: "0.7.3"
101101
desktop_multi_window:
102102
dependency: "direct main"
103103
description:
104104
name: desktop_multi_window
105105
url: "https://pub.dartlang.org"
106106
source: hosted
107-
version: "0.0.1"
107+
version: "0.0.2"
108108
fake_async:
109109
dependency: transitive
110110
description:
111111
name: fake_async
112112
url: "https://pub.dartlang.org"
113113
source: hosted
114-
version: "1.2.0"
114+
version: "1.3.0"
115115
ffi:
116116
dependency: transitive
117117
description:
118118
name: ffi
119119
url: "https://pub.dartlang.org"
120120
source: hosted
121-
version: "1.1.2"
121+
version: "1.2.1"
122122
file:
123123
dependency: transitive
124124
description:
@@ -182,7 +182,7 @@ packages:
182182
path: ".."
183183
relative: true
184184
source: path
185-
version: "1.2.0-dev"
185+
version: "1.2.0"
186186
libadwaita_bitsdojo:
187187
dependency: "direct main"
188188
description:
@@ -210,7 +210,7 @@ packages:
210210
name: material_color_utilities
211211
url: "https://pub.dartlang.org"
212212
source: hosted
213-
version: "0.1.3"
213+
version: "0.1.4"
214214
meta:
215215
dependency: transitive
216216
description:
@@ -224,14 +224,14 @@ packages:
224224
name: package_info_plus
225225
url: "https://pub.dartlang.org"
226226
source: hosted
227-
version: "1.3.0"
227+
version: "1.4.2"
228228
package_info_plus_linux:
229229
dependency: transitive
230230
description:
231231
name: package_info_plus_linux
232232
url: "https://pub.dartlang.org"
233233
source: hosted
234-
version: "1.0.3"
234+
version: "1.0.5"
235235
package_info_plus_macos:
236236
dependency: transitive
237237
description:
@@ -252,14 +252,14 @@ packages:
252252
name: package_info_plus_web
253253
url: "https://pub.dartlang.org"
254254
source: hosted
255-
version: "1.0.4"
255+
version: "1.0.5"
256256
package_info_plus_windows:
257257
dependency: transitive
258258
description:
259259
name: package_info_plus_windows
260260
url: "https://pub.dartlang.org"
261261
source: hosted
262-
version: "1.0.4"
262+
version: "1.0.5"
263263
path:
264264
dependency: transitive
265265
description:
@@ -287,7 +287,7 @@ packages:
287287
name: petitparser
288288
url: "https://pub.dartlang.org"
289289
source: hosted
290-
version: "4.4.0"
290+
version: "5.0.0"
291291
platform:
292292
dependency: transitive
293293
description:
@@ -301,7 +301,7 @@ packages:
301301
name: plugin_platform_interface
302302
url: "https://pub.dartlang.org"
303303
source: hosted
304-
version: "2.0.2"
304+
version: "2.1.2"
305305
popover_gtk:
306306
dependency: transitive
307307
description:
@@ -327,7 +327,7 @@ packages:
327327
name: source_span
328328
url: "https://pub.dartlang.org"
329329
source: hosted
330-
version: "1.8.1"
330+
version: "1.8.2"
331331
stack_trace:
332332
dependency: transitive
333333
description:
@@ -369,70 +369,70 @@ packages:
369369
name: typed_data
370370
url: "https://pub.dartlang.org"
371371
source: hosted
372-
version: "1.3.0"
372+
version: "1.3.1"
373373
url_launcher:
374374
dependency: transitive
375375
description:
376376
name: url_launcher
377377
url: "https://pub.dartlang.org"
378378
source: hosted
379-
version: "6.0.18"
379+
version: "6.1.2"
380380
url_launcher_android:
381381
dependency: transitive
382382
description:
383383
name: url_launcher_android
384384
url: "https://pub.dartlang.org"
385385
source: hosted
386-
version: "6.0.14"
386+
version: "6.0.17"
387387
url_launcher_ios:
388388
dependency: transitive
389389
description:
390390
name: url_launcher_ios
391391
url: "https://pub.dartlang.org"
392392
source: hosted
393-
version: "6.0.14"
393+
version: "6.0.16"
394394
url_launcher_linux:
395395
dependency: transitive
396396
description:
397397
name: url_launcher_linux
398398
url: "https://pub.dartlang.org"
399399
source: hosted
400-
version: "2.0.3"
400+
version: "3.0.1"
401401
url_launcher_macos:
402402
dependency: transitive
403403
description:
404404
name: url_launcher_macos
405405
url: "https://pub.dartlang.org"
406406
source: hosted
407-
version: "2.0.3"
407+
version: "3.0.1"
408408
url_launcher_platform_interface:
409409
dependency: transitive
410410
description:
411411
name: url_launcher_platform_interface
412412
url: "https://pub.dartlang.org"
413413
source: hosted
414-
version: "2.0.4"
414+
version: "2.0.5"
415415
url_launcher_web:
416416
dependency: transitive
417417
description:
418418
name: url_launcher_web
419419
url: "https://pub.dartlang.org"
420420
source: hosted
421-
version: "2.0.6"
421+
version: "2.0.11"
422422
url_launcher_windows:
423423
dependency: transitive
424424
description:
425425
name: url_launcher_windows
426426
url: "https://pub.dartlang.org"
427427
source: hosted
428-
version: "2.0.2"
428+
version: "3.0.1"
429429
vector_math:
430430
dependency: transitive
431431
description:
432432
name: vector_math
433433
url: "https://pub.dartlang.org"
434434
source: hosted
435-
version: "2.1.1"
435+
version: "2.1.2"
436436
very_good_analysis:
437437
dependency: "direct dev"
438438
description:
@@ -446,21 +446,21 @@ packages:
446446
name: win32
447447
url: "https://pub.dartlang.org"
448448
source: hosted
449-
version: "2.3.3"
449+
version: "2.5.2"
450450
xdg_directories:
451451
dependency: transitive
452452
description:
453453
name: xdg_directories
454454
url: "https://pub.dartlang.org"
455455
source: hosted
456-
version: "0.2.0"
456+
version: "0.2.0+1"
457457
xml:
458458
dependency: transitive
459459
description:
460460
name: xml
461461
url: "https://pub.dartlang.org"
462462
source: hosted
463-
version: "5.3.1"
463+
version: "5.4.1"
464464
sdks:
465-
dart: ">=2.16.0-100.0.dev <3.0.0"
466-
flutter: ">=2.5.0"
465+
dart: ">=2.17.0-0 <3.0.0"
466+
flutter: ">=2.10.0"

lib/src/internal/window_resize_listener.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class _WindowResizeListenerState extends State<WindowResizeListener>
2020

2121
@override
2222
void initState() {
23-
_lastSize = WidgetsBinding.instance!.window.physicalSize;
24-
WidgetsBinding.instance!.addObserver(this);
23+
_lastSize = WidgetsBinding.instance.window.physicalSize;
24+
WidgetsBinding.instance.addObserver(this);
2525

2626
widget.onResize(_lastSize);
2727

@@ -30,13 +30,13 @@ class _WindowResizeListenerState extends State<WindowResizeListener>
3030

3131
@override
3232
void dispose() {
33-
WidgetsBinding.instance!.removeObserver(this);
33+
WidgetsBinding.instance.removeObserver(this);
3434
super.dispose();
3535
}
3636

3737
@override
3838
void didChangeMetrics() {
39-
final winSize = WidgetsBinding.instance!.window.physicalSize;
39+
final winSize = WidgetsBinding.instance.window.physicalSize;
4040

4141
if (winSize != _lastSize) {
4242
widget.onResize(winSize);

lib/src/widgets/adw/about_window.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ class _AdwAboutWindowState extends State<AdwAboutWindow> {
156156
if (widget.issueTrackerLink != null)
157157
AdwActionRow(
158158
title: 'Report an issue',
159-
onActivated: () => launch(
160-
widget.issueTrackerLink!,
159+
onActivated: () => launchUrl(
160+
Uri.parse(widget.issueTrackerLink!),
161161
),
162162
end: widget.launchEndIcon ??
163163
const Icon(

lib/src/widgets/adw/flap.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import 'package:libadwaita/src/internal/window_resize_listener.dart';
55
import 'package:libadwaita/src/utils/colors.dart';
66

77
enum FoldPolicy { never, always, auto }
8+
89
enum FlapPosition { start, end }
910

1011
class FlapOptions {
@@ -153,7 +154,7 @@ class _AdwFlapState extends State<AdwFlap> {
153154

154155
return WindowResizeListener(
155156
onResize: (Size size) =>
156-
WidgetsBinding.instance!.addPostFrameCallback((_) {
157+
WidgetsBinding.instance.addPostFrameCallback((_) {
157158
// The stuff that happens when the window is resized
158159
// We check for the mobile state and update it on every resize
159160
// Do nothin if FoldPolicy is never / always, because they are not

lib/src/widgets/adw/header_bar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class _AdwHeaderBarState extends State<AdwHeaderBar> {
134134

135135
final schema = GSettings('org.gnome.desktop.wm.preferences');
136136

137-
WidgetsBinding.instance?.addPostFrameCallback((_) async {
137+
WidgetsBinding.instance.addPostFrameCallback((_) async {
138138
final buttonLayout = await schema.get('button-layout') as DBusString?;
139139
if (buttonLayout != null) {
140140
updateSep(buttonLayout.value);

lib/src/widgets/gtk/stack_sidebar.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class _GtkStackSidebarState extends State<GtkStackSidebar> {
5656
Future<void> loadContentPage(BuildContext context) async {
5757
if (_popupNotOpen) {
5858
_popupNotOpen = false;
59-
SchedulerBinding.instance!.addPostFrameCallback((_) async {
59+
SchedulerBinding.instance.addPostFrameCallback((_) async {
6060
final child = Scaffold(
6161
body: widget.fullContentBuilder != null
6262
? widget.fullContentBuilder!(
@@ -87,7 +87,7 @@ class _GtkStackSidebarState extends State<GtkStackSidebar> {
8787
/// closes popup wind
8888
void _closePopup() {
8989
if (!_popupNotOpen) {
90-
SchedulerBinding.instance!
90+
SchedulerBinding.instance
9191
.addPostFrameCallback((_) => Navigator.pop(context));
9292
}
9393
}

lib/src/widgets/gtk/toggle_button.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ class GtkToggleButton extends StatelessWidget {
1212
required this.isSelected,
1313
}) : super(key: key);
1414

15+
/// The List of all the children widgets of this toggle button
1516
final List<Widget> children;
17+
1618
final void Function(int index) onPressed;
19+
1720
final List<bool> isSelected;
1821

1922
@override

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: libadwaita
22
description: Libadwaita's widgets for Flutter. Following Gnome HIG and available on all platforms.
3-
version: 1.2.0-dev
3+
version: 1.2.0
44
homepage: https://github.com/gtk-flutter/libadwaita
55

66
environment:
@@ -16,15 +16,15 @@ platforms:
1616
windows:
1717

1818
dependencies:
19-
dbus: ">=0.7.1 <1.0.0"
19+
dbus: ">=0.7.3 <1.0.0"
2020
flutter:
2121
sdk: flutter
2222
flutter_svg: ">=1.0.3 < 2.0.0"
2323
gsettings: ">=0.2.5 <1.0.0"
2424
libadwaita_core: ">=0.5.1 < 2.0.0"
25-
package_info_plus: ">=1.3.0 < 2.0.0"
25+
package_info_plus: ">=1.4.2 < 2.0.0"
2626
popover_gtk: ">=0.2.6+3 < 1.0.0"
27-
url_launcher: ">=6.0.18 < 7.0.0"
27+
url_launcher: ">=6.1.2 < 7.0.0"
2828

2929
dev_dependencies:
3030
very_good_analysis: ^2.4.0

0 commit comments

Comments
 (0)