Skip to content

Commit c8623ec

Browse files
authored
Merge pull request #2 from botstar/feat/tu_sdk-widget-api
Feat/tu sdk widget api
2 parents aa53bdf + b6cfd5e commit c8623ec

File tree

10 files changed

+11
-110
lines changed

10 files changed

+11
-110
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.0.1
1+
## 0.5.0
22
- **Initial Release** of the [Chative.IO Flutter Widget](https://github.com/botstar/chative-flutter-sdk) on 2024-11-08.
33
- **Customizable Chat Interface**: Easily tailor the chat widget to match your app's design.
44
- **Programmatic Show/Hide**: Display or hide the chat widget using `ChativeWidgetController`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
## Screenshot
2424

25-
<img src="./screenshot/screenshot.png" alt="screenshot" width="350">
25+
<img src="https://raw.githubusercontent.com/botstar/chative-flutter-sdk/HEAD/screenshot/screenshot.png" alt="screenshot" width="350">
2626

2727
## Installation
2828

example/linux/flutter/generated_plugin_registrant.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77
#include "generated_plugin_registrant.h"
88

9-
#include <url_launcher_linux/url_launcher_plugin.h>
109

1110
void fl_register_plugins(FlPluginRegistry* registry) {
12-
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
13-
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
14-
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
1511
}

example/linux/flutter/generated_plugins.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6-
url_launcher_linux
76
)
87

98
list(APPEND FLUTTER_FFI_PLUGIN_LIST

example/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
import FlutterMacOS
66
import Foundation
77

8-
import url_launcher_macos
98
import webview_flutter_wkwebview
109

1110
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
12-
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
1311
FLTWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "FLTWebViewFlutterPlugin"))
1412
}

example/pubspec.lock

Lines changed: 1 addition & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ packages:
3131
path: ".."
3232
relative: true
3333
source: path
34-
version: "0.1.0"
34+
version: "0.0.1"
3535
clock:
3636
dependency: transitive
3737
description:
@@ -82,11 +82,6 @@ packages:
8282
description: flutter
8383
source: sdk
8484
version: "0.0.0"
85-
flutter_web_plugins:
86-
dependency: transitive
87-
description: flutter
88-
source: sdk
89-
version: "0.0.0"
9085
leak_tracker:
9186
dependency: transitive
9287
description:
@@ -212,70 +207,6 @@ packages:
212207
url: "https://pub.dev"
213208
source: hosted
214209
version: "0.7.2"
215-
url_launcher:
216-
dependency: transitive
217-
description:
218-
name: url_launcher
219-
sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603"
220-
url: "https://pub.dev"
221-
source: hosted
222-
version: "6.3.1"
223-
url_launcher_android:
224-
dependency: transitive
225-
description:
226-
name: url_launcher_android
227-
sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193"
228-
url: "https://pub.dev"
229-
source: hosted
230-
version: "6.3.14"
231-
url_launcher_ios:
232-
dependency: transitive
233-
description:
234-
name: url_launcher_ios
235-
sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e
236-
url: "https://pub.dev"
237-
source: hosted
238-
version: "6.3.1"
239-
url_launcher_linux:
240-
dependency: transitive
241-
description:
242-
name: url_launcher_linux
243-
sha256: e2b9622b4007f97f504cd64c0128309dfb978ae66adbe944125ed9e1750f06af
244-
url: "https://pub.dev"
245-
source: hosted
246-
version: "3.2.0"
247-
url_launcher_macos:
248-
dependency: transitive
249-
description:
250-
name: url_launcher_macos
251-
sha256: "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672"
252-
url: "https://pub.dev"
253-
source: hosted
254-
version: "3.2.1"
255-
url_launcher_platform_interface:
256-
dependency: transitive
257-
description:
258-
name: url_launcher_platform_interface
259-
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
260-
url: "https://pub.dev"
261-
source: hosted
262-
version: "2.3.2"
263-
url_launcher_web:
264-
dependency: transitive
265-
description:
266-
name: url_launcher_web
267-
sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e"
268-
url: "https://pub.dev"
269-
source: hosted
270-
version: "2.3.3"
271-
url_launcher_windows:
272-
dependency: transitive
273-
description:
274-
name: url_launcher_windows
275-
sha256: "44cf3aabcedde30f2dba119a9dea3b0f2672fbe6fa96e85536251d678216b3c4"
276-
url: "https://pub.dev"
277-
source: hosted
278-
version: "3.1.3"
279210
vector_math:
280211
dependency: transitive
281212
description:
@@ -292,14 +223,6 @@ packages:
292223
url: "https://pub.dev"
293224
source: hosted
294225
version: "14.2.5"
295-
web:
296-
dependency: transitive
297-
description:
298-
name: web
299-
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
300-
url: "https://pub.dev"
301-
source: hosted
302-
version: "1.1.0"
303226
webview_flutter:
304227
dependency: transitive
305228
description:

example/windows/flutter/generated_plugin_registrant.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
#include "generated_plugin_registrant.h"
88

9-
#include <url_launcher_windows/url_launcher_windows.h>
109

1110
void RegisterPlugins(flutter::PluginRegistry* registry) {
12-
UrlLauncherWindowsRegisterWithRegistrar(
13-
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
1411
}

example/windows/flutter/generated_plugins.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6-
url_launcher_windows
76
)
87

98
list(APPEND FLUTTER_FFI_PLUGIN_LIST

lib/src/webview.dart

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
33
import 'package:webview_flutter/webview_flutter.dart';
44
import 'package:chative_sdk/src/constants.dart';
55
import 'package:chative_sdk/src/utils.dart';
6-
import 'package:url_launcher/url_launcher.dart';
76

87
typedef OnClosed = void Function();
98
typedef OnLoaded = void Function();
@@ -122,22 +121,7 @@ class WebviewState extends State<Webview> {
122121
IconButton(
123122
icon: const Icon(Icons.close),
124123
onPressed: () => Navigator.pop(context),
125-
),
126-
Row(
127-
children: [
128-
IconButton(
129-
icon: const Icon(Icons.open_in_browser),
130-
onPressed: () async {
131-
if (await canLaunchUrl(Uri.parse(url))) {
132-
await launchUrl(
133-
Uri.parse(url),
134-
mode: LaunchMode.externalApplication,
135-
);
136-
}
137-
},
138-
),
139-
],
140-
),
124+
)
141125
],
142126
),
143127
),

pubspec.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: chative_sdk
22
description: "A Flutter client sdk for chative. Integrate Chative Flutter client into your flutter app and talk to your visitors/users in real time."
3-
version: 0.0.1
3+
version: 0.5.0
44
homepage: https://github.com/botstar/chative-flutter-sdk
5+
repository: https://github.com/botstar/chative-flutter-sdk
6+
issue_tracker: https://github.com/botstar/chative-flutter-sdk/issues
7+
8+
platforms:
9+
android:
10+
ios:
511

612
environment:
713
sdk: '>=3.0.6 <4.0.0'
@@ -11,7 +17,6 @@ dependencies:
1117
flutter:
1218
sdk: flutter
1319
webview_flutter: ^4.5.0
14-
url_launcher: ^6.1.14
1520

1621
dev_dependencies:
1722
flutter_test:

0 commit comments

Comments
 (0)