Skip to content

Commit 02b618c

Browse files
Finalised profile page with app localization
1 parent 3834a4b commit 02b618c

8 files changed

Lines changed: 458 additions & 121 deletions

File tree

farmerapp/lib/pages/subpages/profile.dart

Lines changed: 311 additions & 120 deletions
Large diffs are not rendered by default.

farmerapp/linux/flutter/generated_plugin_registrant.cc

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

77
#include "generated_plugin_registrant.h"
88

9+
#include <url_launcher_linux/url_launcher_plugin.h>
910

1011
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);
1115
}

farmerapp/linux/flutter/generated_plugins.cmake

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

55
list(APPEND FLUTTER_PLUGIN_LIST
6+
url_launcher_linux
67
)
78

89
list(APPEND FLUTTER_FFI_PLUGIN_LIST

farmerapp/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import FlutterMacOS
66
import Foundation
77

88
import path_provider_foundation
9+
import url_launcher_macos
910

1011
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1112
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
13+
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
1214
}

farmerapp/pubspec.lock

Lines changed: 126 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ packages:
120120
description: flutter
121121
source: sdk
122122
version: "0.0.0"
123+
flutter_web_plugins:
124+
dependency: transitive
125+
description: flutter
126+
source: sdk
127+
version: "0.0.0"
123128
get:
124129
dependency: "direct main"
125130
description:
@@ -137,7 +142,7 @@ packages:
137142
source: hosted
138143
version: "6.2.1"
139144
http:
140-
dependency: transitive
145+
dependency: "direct main"
141146
description:
142147
name: http
143148
sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938"
@@ -160,6 +165,14 @@ packages:
160165
url: "https://pub.dev"
161166
source: hosted
162167
version: "0.18.1"
168+
ionicons:
169+
dependency: "direct main"
170+
description:
171+
name: ionicons
172+
sha256: "5496bc65a16115ecf05b15b78f494ee4a8869504357668f0a11d689e970523cf"
173+
url: "https://pub.dev"
174+
source: hosted
175+
version: "0.2.2"
163176
leak_tracker:
164177
dependency: transitive
165178
description:
@@ -272,6 +285,54 @@ packages:
272285
url: "https://pub.dev"
273286
source: hosted
274287
version: "2.2.1"
288+
permission_handler:
289+
dependency: "direct main"
290+
description:
291+
name: permission_handler
292+
sha256: "74e962b7fad7ff75959161bb2c0ad8fe7f2568ee82621c9c2660b751146bfe44"
293+
url: "https://pub.dev"
294+
source: hosted
295+
version: "11.3.0"
296+
permission_handler_android:
297+
dependency: transitive
298+
description:
299+
name: permission_handler_android
300+
sha256: "1acac6bae58144b442f11e66621c062aead9c99841093c38f5bcdcc24c1c3474"
301+
url: "https://pub.dev"
302+
source: hosted
303+
version: "12.0.5"
304+
permission_handler_apple:
305+
dependency: transitive
306+
description:
307+
name: permission_handler_apple
308+
sha256: bdafc6db74253abb63907f4e357302e6bb786ab41465e8635f362ee71fd8707b
309+
url: "https://pub.dev"
310+
source: hosted
311+
version: "9.4.0"
312+
permission_handler_html:
313+
dependency: transitive
314+
description:
315+
name: permission_handler_html
316+
sha256: "54bf176b90f6eddd4ece307e2c06cf977fb3973719c35a93b85cc7093eb6070d"
317+
url: "https://pub.dev"
318+
source: hosted
319+
version: "0.1.1"
320+
permission_handler_platform_interface:
321+
dependency: transitive
322+
description:
323+
name: permission_handler_platform_interface
324+
sha256: "23dfba8447c076ab5be3dee9ceb66aad345c4a648f0cac292c77b1eb0e800b78"
325+
url: "https://pub.dev"
326+
source: hosted
327+
version: "4.2.0"
328+
permission_handler_windows:
329+
dependency: transitive
330+
description:
331+
name: permission_handler_windows
332+
sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e"
333+
url: "https://pub.dev"
334+
source: hosted
335+
version: "0.2.1"
275336
platform:
276337
dependency: transitive
277338
description:
@@ -349,6 +410,70 @@ packages:
349410
url: "https://pub.dev"
350411
source: hosted
351412
version: "1.3.2"
413+
url_launcher:
414+
dependency: "direct main"
415+
description:
416+
name: url_launcher
417+
sha256: "0ecc004c62fd3ed36a2ffcbe0dd9700aee63bd7532d0b642a488b1ec310f492e"
418+
url: "https://pub.dev"
419+
source: hosted
420+
version: "6.2.5"
421+
url_launcher_android:
422+
dependency: transitive
423+
description:
424+
name: url_launcher_android
425+
sha256: d4ed0711849dd8e33eb2dd69c25db0d0d3fdc37e0a62e629fe32f57a22db2745
426+
url: "https://pub.dev"
427+
source: hosted
428+
version: "6.3.0"
429+
url_launcher_ios:
430+
dependency: transitive
431+
description:
432+
name: url_launcher_ios
433+
sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5"
434+
url: "https://pub.dev"
435+
source: hosted
436+
version: "6.2.5"
437+
url_launcher_linux:
438+
dependency: transitive
439+
description:
440+
name: url_launcher_linux
441+
sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811
442+
url: "https://pub.dev"
443+
source: hosted
444+
version: "3.1.1"
445+
url_launcher_macos:
446+
dependency: transitive
447+
description:
448+
name: url_launcher_macos
449+
sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
450+
url: "https://pub.dev"
451+
source: hosted
452+
version: "3.1.0"
453+
url_launcher_platform_interface:
454+
dependency: transitive
455+
description:
456+
name: url_launcher_platform_interface
457+
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
458+
url: "https://pub.dev"
459+
source: hosted
460+
version: "2.3.2"
461+
url_launcher_web:
462+
dependency: transitive
463+
description:
464+
name: url_launcher_web
465+
sha256: "3692a459204a33e04bc94f5fb91158faf4f2c8903281ddd82915adecdb1a901d"
466+
url: "https://pub.dev"
467+
source: hosted
468+
version: "2.3.0"
469+
url_launcher_windows:
470+
dependency: transitive
471+
description:
472+
name: url_launcher_windows
473+
sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7
474+
url: "https://pub.dev"
475+
source: hosted
476+
version: "3.1.1"
352477
vector_math:
353478
dependency: transitive
354479
description:

farmerapp/pubspec.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ dependencies:
3636
# The following adds the Cupertino Icons font to your application.
3737
# Use with the CupertinoIcons class for iOS style icons.
3838
cupertino_icons: ^1.0.6
39+
ionicons: any
3940
google_fonts: ^6.2.1
4041
fl_chart: ^0.66.2
4142
clipboard: any
4243
get: ^4.6.6
44+
http: ^1.1.2
45+
url_launcher: ^6.2.2
46+
permission_handler: ^11.3.0
4347

4448
dev_dependencies:
4549
flutter_test:
@@ -76,6 +80,8 @@ flutter:
7680
- assets/lang/ta.json
7781
- assets/lang/te.json
7882
- assets/lang/ur.json
83+
- assets/avatar.png
84+
- assets/state_district.json
7985

8086
# To add assets to your application, add an assets section, like this:
8187
# assets:

farmerapp/windows/flutter/generated_plugin_registrant.cc

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

77
#include "generated_plugin_registrant.h"
88

9+
#include <permission_handler_windows/permission_handler_windows_plugin.h>
10+
#include <url_launcher_windows/url_launcher_windows.h>
911

1012
void RegisterPlugins(flutter::PluginRegistry* registry) {
13+
PermissionHandlerWindowsPluginRegisterWithRegistrar(
14+
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
15+
UrlLauncherWindowsRegisterWithRegistrar(
16+
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
1117
}

farmerapp/windows/flutter/generated_plugins.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6+
permission_handler_windows
7+
url_launcher_windows
68
)
79

810
list(APPEND FLUTTER_FFI_PLUGIN_LIST

0 commit comments

Comments
 (0)