From a6fb67b23edea4b2657bbd0cbb7150de85b88db6 Mon Sep 17 00:00:00 2001 From: 4831c0 <4831c0@proton.me> Date: Fri, 4 Apr 2025 19:26:54 +0200 Subject: [PATCH] wear_plus to zare_plus This is a really really dumb workaround for a really really weird bug. If webview_flutter's plugin gets loaded AFTER wear_plus's plugin has been loaded then it will not work. And since flutter loads plugins in an alphabetical order, we can just rename wear_plus to zare_plus and have it's plugin load last. --- lib/src/ambient_widget.dart | 2 +- lib/src/shape_widget.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/ambient_widget.dart b/lib/src/ambient_widget.dart index 5840619..4a42a1a 100644 --- a/lib/src/ambient_widget.dart +++ b/lib/src/ambient_widget.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:wear_plus/src/wear.dart'; +import 'package:zear_plus/src/wear.dart'; /// Ambient modes for a Wear device enum WearMode { diff --git a/lib/src/shape_widget.dart b/lib/src/shape_widget.dart index f846655..7cd66f0 100644 --- a/lib/src/shape_widget.dart +++ b/lib/src/shape_widget.dart @@ -1,5 +1,5 @@ import 'package:flutter/widgets.dart'; -import 'package:wear_plus/src/wear.dart'; +import 'package:zear_plus/src/wear.dart'; /// Shape of a Wear device enum WearShape { diff --git a/pubspec.yaml b/pubspec.yaml index 75461c3..e347fcb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,4 +1,4 @@ -name: wear_plus +name: zear_plus description: An actively maintained plugin that offers Flutter support for Wear OS by Google version: 1.2.3 homepage: https://github.com/Rexios80/wear_plus