Skip to content

Commit 70340a5

Browse files
committedNov 23, 2023
progressing
1 parent 153d6dd commit 70340a5

16 files changed

+609
-130
lines changed
 

‎lib/Screens/bbc.dart

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// ignore_for_file: prefer_const_constructors, avoid_unnecessary_containers, prefer_const_literals_to_create_immutables
2+
3+
import 'package:flutter/material.dart';
4+
import 'package:share_plus/share_plus.dart';
5+
6+
class Bbc extends StatefulWidget {
7+
const Bbc({super.key});
8+
9+
@override
10+
State<Bbc> createState() => _BbcState();
11+
}
12+
13+
class _BbcState extends State<Bbc> {
14+
@override
15+
Widget build(BuildContext context) {
16+
return Scaffold(
17+
backgroundColor: Colors.white,
18+
appBar: AppBar(
19+
backgroundColor: Colors.white,
20+
elevation: 0,
21+
iconTheme: IconThemeData(),
22+
actions: [
23+
IconButton(
24+
onPressed: () {
25+
_shareMore("Thanks for Sharing NewZia");
26+
},
27+
icon: Padding(
28+
padding: const EdgeInsets.only(right: 10),
29+
child: Icon(
30+
Icons.share,
31+
color: Colors.black,
32+
),
33+
))
34+
],
35+
),
36+
body: Column(
37+
children: [
38+
Padding(
39+
padding: const EdgeInsets.only(right: 270),
40+
child: CircleAvatar(radius: 40,
41+
child: ClipRRect(
42+
borderRadius: BorderRadius.all(Radius.circular(20)),
43+
child: Image.asset(
44+
"assets/bbc.png",
45+
fit: BoxFit.cover,
46+
)),
47+
),
48+
),
49+
Row(children: [
50+
Text("data"),
51+
],)
52+
],
53+
54+
),
55+
);
56+
}
57+
58+
void _shareMore(String text) {
59+
Share.share(text);
60+
}
61+
}

‎lib/Screens/home.dart

+120-115
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import 'package:buttons_tabbar/buttons_tabbar.dart';
44
import 'package:flutter/material.dart';
55
import 'package:google_fonts/google_fonts.dart';
6+
import 'package:newszia/Screens/home_mini.dart';
67
import 'package:newszia/Screens/notify.dart';
78
import 'package:newszia/Tabs/Business.dart';
89
import 'package:newszia/Tabs/Politics.dart';
@@ -68,124 +69,128 @@ class _HomeState extends State<Home> {
6869
),
6970
),
7071
SizedBox(height: 10),
71-
Container(
72-
height: h * 0.50,
73-
width: w * 0.9,
74-
decoration: BoxDecoration(
75-
color: const Color.fromARGB(255, 129, 127, 127),
76-
borderRadius: BorderRadius.all(Radius.circular(20))),
77-
child: Stack(
78-
children: [
79-
Positioned(
80-
top: 0,
81-
left: 0,
82-
bottom: 0,
83-
right: 0,
84-
child: Container(
85-
decoration: BoxDecoration(
86-
color: Color.fromARGB(255, 129, 128, 128),
87-
borderRadius:
88-
BorderRadius.all(Radius.circular(20))),
89-
child: ClipRRect(
90-
borderRadius: BorderRadius.all(Radius.circular(20)),
91-
child: Image.asset(
92-
"assets/dark.jpeg",
93-
fit: BoxFit.fitHeight,
94-
)),
95-
)),
96-
Positioned(
97-
top: 20,
98-
right: 20,
99-
left: 290,
100-
bottom: 330,
101-
child: Container(
102-
decoration: BoxDecoration(
103-
color: Colors.redAccent,
104-
borderRadius:
105-
BorderRadius.all(Radius.circular(10))),
106-
child: IconButton(
107-
onPressed: () {},
108-
icon: Icon(Icons.bookmark_outline_outlined)),
109-
)),
110-
Positioned(
111-
top: 160,
112-
right: 260,
113-
left: 30,
114-
bottom: 215,
115-
child: Container(
116-
decoration: BoxDecoration(
117-
color: Color.fromARGB(255, 117, 181, 233),
118-
borderRadius:
119-
BorderRadius.all(Radius.circular(20))),
120-
child: Center(
121-
child: Text(
122-
"Travel",
72+
GestureDetector(onTap: () {
73+
Navigator.push(context, MaterialPageRoute(builder: ((context) => HomeMini())));
74+
},
75+
child: Container(
76+
height: h * 0.50,
77+
width: w * 0.9,
78+
decoration: BoxDecoration(
79+
color: const Color.fromARGB(255, 129, 127, 127),
80+
borderRadius: BorderRadius.all(Radius.circular(20))),
81+
child: Stack(
82+
children: [
83+
Positioned(
84+
top: 0,
85+
left: 0,
86+
bottom: 0,
87+
right: 0,
88+
child: Container(
89+
decoration: BoxDecoration(
90+
color: Color.fromARGB(255, 129, 128, 128),
91+
borderRadius:
92+
BorderRadius.all(Radius.circular(20))),
93+
child: ClipRRect(
94+
borderRadius: BorderRadius.all(Radius.circular(20)),
95+
child: Image.asset(
96+
"assets/dark.jpeg",
97+
fit: BoxFit.fitHeight,
98+
)),
99+
)),
100+
Positioned(
101+
top: 20,
102+
right: 20,
103+
left: 290,
104+
bottom: 330,
105+
child: Container(
106+
decoration: BoxDecoration(
107+
color: Colors.redAccent,
108+
borderRadius:
109+
BorderRadius.all(Radius.circular(10))),
110+
child: IconButton(
111+
onPressed: () {},
112+
icon: Icon(Icons.bookmark_outline_outlined)),
113+
)),
114+
Positioned(
115+
top: 160,
116+
right: 260,
117+
left: 30,
118+
bottom: 215,
119+
child: Container(
120+
decoration: BoxDecoration(
121+
color: Color.fromARGB(255, 117, 181, 233),
122+
borderRadius:
123+
BorderRadius.all(Radius.circular(20))),
124+
child: Center(
125+
child: Text(
126+
"Travel",
127+
style: GoogleFonts.roboto(
128+
fontWeight: FontWeight.w600, color: Colors.white),
129+
)),
130+
)),
131+
Positioned(
132+
top: 165,
133+
right: 70,
134+
left: 120,
135+
bottom: 0,
136+
child: Text(
137+
"5 min reads",
123138
style: GoogleFonts.roboto(
124139
fontWeight: FontWeight.w600, color: Colors.white),
125140
)),
126-
)),
127-
Positioned(
128-
top: 165,
129-
right: 70,
130-
left: 120,
131-
bottom: 0,
132-
child: Text(
133-
"5 min reads",
134-
style: GoogleFonts.roboto(
135-
fontWeight: FontWeight.w600, color: Colors.white),
136-
)),
137-
Positioned(
138-
top: 220,
139-
right: 100,
140-
left: 30,
141-
bottom: 120,
142-
child: Text(
143-
"The UNESCO World Heritage Site with sky-\nhigh house prices",
144-
style: GoogleFonts.roboto(
145-
fontWeight: FontWeight.w800,
146-
color: Colors.white,
147-
fontSize: 16),
148-
)),
149-
Positioned(
150-
top: 320,
151-
right: 280,
152-
left: 30,
153-
bottom: 40,
154-
child: Container(
155-
decoration: BoxDecoration(
156-
color: Color.fromARGB(255, 255, 255, 255),
157-
borderRadius:
158-
BorderRadius.all(Radius.circular(40))),
159-
child: Center(
160-
child: ClipRRect(
161-
borderRadius:
162-
BorderRadius.all(Radius.circular(50)),
163-
child: Image.asset(
164-
"assets/bbc.png",
165-
fit: BoxFit.fill,
166-
))),
167-
)),
168-
Positioned(
169-
top: 335,
170-
right: 60,
171-
left: 90,
172-
bottom: 40,
173-
child: Text(
174-
"BBC NEWS",
175-
style: GoogleFonts.roboto(
176-
fontWeight: FontWeight.w600, color: Colors.white),
177-
)),
178-
Positioned(
179-
top: 340,
180-
right: 30,
181-
left: 240,
182-
bottom: 40,
183-
child: Text(
184-
"3 hours ago",
185-
style: GoogleFonts.roboto(
186-
fontWeight: FontWeight.w400, color: Colors.white),
187-
)),
188-
],
141+
Positioned(
142+
top: 220,
143+
right: 100,
144+
left: 30,
145+
bottom: 120,
146+
child: Text(
147+
"The UNESCO World Heritage Site with sky-\nhigh house prices",
148+
style: GoogleFonts.roboto(
149+
fontWeight: FontWeight.w800,
150+
color: Colors.white,
151+
fontSize: 16),
152+
)),
153+
Positioned(
154+
top: 320,
155+
right: 280,
156+
left: 30,
157+
bottom: 40,
158+
child: Container(
159+
decoration: BoxDecoration(
160+
color: Color.fromARGB(255, 255, 255, 255),
161+
borderRadius:
162+
BorderRadius.all(Radius.circular(40))),
163+
child: Center(
164+
child: ClipRRect(
165+
borderRadius:
166+
BorderRadius.all(Radius.circular(50)),
167+
child: Image.asset(
168+
"assets/bbc.png",
169+
fit: BoxFit.fill,
170+
))),
171+
)),
172+
Positioned(
173+
top: 335,
174+
right: 60,
175+
left: 90,
176+
bottom: 40,
177+
child: Text(
178+
"BBC NEWS",
179+
style: GoogleFonts.roboto(
180+
fontWeight: FontWeight.w600, color: Colors.white),
181+
)),
182+
Positioned(
183+
top: 340,
184+
right: 30,
185+
left: 240,
186+
bottom: 40,
187+
child: Text(
188+
"3 hours ago",
189+
style: GoogleFonts.roboto(
190+
fontWeight: FontWeight.w400, color: Colors.white),
191+
)),
192+
],
193+
),
189194
),
190195
),
191196
SizedBox(height: 20),

‎lib/Screens/home_mini.dart

+271
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,271 @@
1+
// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables
2+
3+
import 'package:flutter/material.dart';
4+
import 'package:google_fonts/google_fonts.dart';
5+
import 'package:newszia/Screens/bbc.dart';
6+
import 'package:newszia/Screens/home.dart';
7+
import 'package:share_plus/share_plus.dart';
8+
9+
class HomeMini extends StatefulWidget {
10+
const HomeMini({super.key});
11+
12+
@override
13+
State<HomeMini> createState() => _HomeMiniState();
14+
}
15+
16+
class _HomeMiniState extends State<HomeMini> {
17+
@override
18+
Widget build(BuildContext context) {
19+
double h = MediaQuery.of(context).size.height;
20+
double w = MediaQuery.of(context).size.width;
21+
return Scaffold(
22+
body: SingleChildScrollView(
23+
child: Column(
24+
children: [
25+
Container(
26+
height: h * 0.50,
27+
width: w * 1,
28+
decoration: BoxDecoration(
29+
color: const Color.fromARGB(255, 129, 127, 127),
30+
borderRadius: BorderRadius.all(Radius.circular(20))),
31+
child: Stack(
32+
children: [
33+
Positioned(
34+
top: 0,
35+
left: 0,
36+
bottom: 0,
37+
right: 0,
38+
child: Container(
39+
decoration: BoxDecoration(
40+
color: Color.fromARGB(255, 129, 128, 128),
41+
borderRadius:
42+
BorderRadius.all(Radius.circular(20))),
43+
child: ClipRRect(
44+
borderRadius: BorderRadius.all(Radius.circular(20)),
45+
child: Image.asset(
46+
"assets/dark.jpeg",
47+
fit: BoxFit.fitHeight,
48+
)),
49+
)),
50+
Positioned(
51+
top: 20,
52+
right: 330,
53+
left: 0,
54+
bottom: 330,
55+
child: IconButton(
56+
onPressed: () {
57+
Navigator.push(
58+
context,
59+
MaterialPageRoute(
60+
builder: ((context) => Home())));
61+
},
62+
icon: Icon(Icons.arrow_back, color: Colors.white))),
63+
Positioned(
64+
top: 20,
65+
right: 20,
66+
left: 300,
67+
bottom: 330,
68+
child: IconButton(
69+
onPressed: () {},
70+
icon: Icon(Icons.bookmark_add_outlined,
71+
color: Colors.white))),
72+
Positioned(
73+
top: 20,
74+
right: 20,
75+
left: 350,
76+
bottom: 330,
77+
child: IconButton(
78+
onPressed: () {
79+
_shareMore("Thanks for Sharing NEWZIA");
80+
},
81+
icon: Icon(Icons.share, color: Colors.white))),
82+
Positioned(
83+
top: 220,
84+
right: 300,
85+
left: 30,
86+
bottom: 150,
87+
child: Container(
88+
decoration: BoxDecoration(
89+
color: Color.fromARGB(255, 117, 181, 233),
90+
borderRadius:
91+
BorderRadius.all(Radius.circular(20))),
92+
child: Center(
93+
child: Text(
94+
"Travel",
95+
style: GoogleFonts.roboto(
96+
fontWeight: FontWeight.w600, color: Colors.white),
97+
)),
98+
)),
99+
Positioned(
100+
top: 225,
101+
right: 0,
102+
left: 110,
103+
bottom: 0,
104+
child: Text(
105+
"5 min reads",
106+
style: GoogleFonts.roboto(
107+
fontWeight: FontWeight.w600, color: Colors.white),
108+
)),
109+
Positioned(
110+
top: 225,
111+
right: 0,
112+
left: 220,
113+
bottom: 0,
114+
child: Text(
115+
"|",
116+
style: GoogleFonts.roboto(
117+
fontWeight: FontWeight.w600, color: Colors.white),
118+
)),
119+
Positioned(
120+
top: 225,
121+
right: 0,
122+
left: 230,
123+
bottom: 0,
124+
child: Text(
125+
"3 hours ago",
126+
style: GoogleFonts.roboto(
127+
fontWeight: FontWeight.w600, color: Colors.white),
128+
)),
129+
Positioned(
130+
top: 280,
131+
right: 100,
132+
left: 30,
133+
bottom: 0,
134+
child: Text(
135+
"The UNESCO World Heritage Site with sky-\nhigh house prices",
136+
style: GoogleFonts.roboto(
137+
fontWeight: FontWeight.w800,
138+
color: Colors.white,
139+
fontSize: 16),
140+
)),
141+
Positioned(
142+
top: 360,
143+
right: 300,
144+
left: 0,
145+
bottom: 20,
146+
child: Icon(
147+
Icons.remove_red_eye_outlined,
148+
color: Colors.white,
149+
)),
150+
Positioned(
151+
top: 365,
152+
right: 30,
153+
left: 70,
154+
bottom: 0,
155+
child: Text(
156+
"2.500",
157+
style: GoogleFonts.roboto(
158+
fontWeight: FontWeight.w600, color: Colors.white),
159+
)),
160+
Positioned(
161+
top: 340,
162+
right: 130,
163+
left: 0,
164+
bottom: 0,
165+
child: Icon(
166+
Icons.thumb_up_alt_outlined,
167+
color: Colors.white,
168+
size: 16,
169+
)),
170+
Positioned(
171+
top: 365,
172+
right: 0,
173+
left: 150,
174+
bottom: 0,
175+
child: Text(
176+
"540",
177+
style: GoogleFonts.roboto(
178+
color: Colors.white, fontWeight: FontWeight.w900),
179+
)),
180+
],
181+
),
182+
),
183+
SizedBox(height: 20),
184+
Row(
185+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
186+
children: [
187+
Padding(
188+
padding: const EdgeInsets.only(left: 20),
189+
child: CircleAvatar(
190+
child: ClipRRect(
191+
borderRadius: BorderRadius.all(Radius.circular(20)),
192+
child: Image.asset(
193+
"assets/bbc.png",
194+
fit: BoxFit.cover,
195+
)),
196+
),
197+
),
198+
Padding(
199+
padding: const EdgeInsets.only(right: 130),
200+
child: Text(
201+
"BBC NEWS",
202+
style: GoogleFonts.roboto(
203+
fontWeight: FontWeight.w900, fontSize: 16),
204+
),
205+
),
206+
Padding(
207+
padding: const EdgeInsets.only(right: 20),
208+
child: Container(
209+
height: 35,
210+
width: 80,
211+
decoration: BoxDecoration(
212+
color: Colors.redAccent,
213+
borderRadius: BorderRadius.all(Radius.circular(20))),
214+
child: GestureDetector(onTap: () {
215+
Navigator.push(context, MaterialPageRoute(builder: ((context) => Bbc())));
216+
},
217+
child: Stack(
218+
children: [
219+
Positioned(
220+
top: 1,
221+
bottom: 0,
222+
right: 50,
223+
left: 0,
224+
child: Icon(
225+
Icons.add,
226+
color: Colors.white,
227+
size: 16,
228+
)),
229+
Positioned(
230+
top: 8,
231+
bottom: 0,
232+
right: 0,
233+
left: 30,
234+
child: Text(
235+
"Follow",
236+
style: GoogleFonts.roboto(color: Colors.white),
237+
))
238+
],
239+
),
240+
),
241+
),
242+
)
243+
],
244+
),
245+
SizedBox(height: 10),
246+
Padding(
247+
padding: const EdgeInsets.all(20),
248+
child: Text(
249+
"Climate is the average weather in a place over many years. Climate change is a shift in those average conditions.\n\nWhen fossil fuels burn, they release greenhouse gases - mostly carbon dioxide (CO2). These additional gases trap extra energy in the atmosphere near the Earth's surface, causing the planet's temperature to rise.\n\nSince the start of the Industrial Revolution - when humans started burning large amounts of these fuels - the amount of CO2 in the atmosphere has risen by over 50%, and is still growing.",
250+
style: GoogleFonts.roboto(
251+
fontSize: 16, fontWeight: FontWeight.w600),
252+
),
253+
),
254+
FloatingActionButton(
255+
backgroundColor: const Color.fromARGB(255, 230, 228, 228),
256+
onPressed: () {},
257+
child: Icon(
258+
Icons.thumb_up_alt_outlined,
259+
color: Colors.redAccent,
260+
),
261+
)
262+
],
263+
),
264+
),
265+
);
266+
}
267+
268+
void _shareMore(String text) {
269+
Share.share(text);
270+
}
271+
}

‎lib/Screens/notify.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
55
import 'package:google_fonts/google_fonts.dart';
66
import 'package:newszia/Tabs/politics.dart';
77
import 'package:newszia/Tabs/science.dart';
8-
import 'package:newszia/Tabs/sports.dart';
98
import 'package:newszia/notifyTabs/follow.dart';
109
import 'package:newszia/notifyTabs/n_all.dart';
1110
import 'package:newszia/notifyTabs/n_bookmark.dart';
@@ -108,10 +107,10 @@ class _NotifyState extends State<Notify> {
108107
child: Follow(),
109108
),
110109
Center(
111-
child: N_share(),
110+
child: NotifyShare(),
112111
),
113112
Center(
114-
child: n_bookmark(),
113+
child: nBookMark(),
115114
),
116115
Center(
117116
child: Politics(),

‎lib/Tabs/all.dart

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import 'package:flutter/material.dart';
44
import 'package:google_fonts/google_fonts.dart';
5+
import 'package:newszia/Screens/home_mini.dart';
56

67
class All extends StatefulWidget {
78
const All({super.key});

‎lib/notifyTabs/follow.dart

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore_for_file: prefer_const_constructors
2+
13
import 'package:flutter/material.dart';
24

35
class Follow extends StatefulWidget {

‎lib/notifyTabs/n_all.dart

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// ignore_for_file: prefer_const_constructors, camel_case_types
1+
// ignore_for_file: prefer_const_constructors, camel_case_types, prefer_const_literals_to_create_immutables
22

33
import 'package:flutter/material.dart';
4+
import 'package:google_fonts/google_fonts.dart';
45

56
class N_all extends StatefulWidget {
67
const N_all({super.key});
@@ -13,7 +14,27 @@ class _N_allState extends State<N_all> {
1314
@override
1415
Widget build(BuildContext context) {
1516
return Scaffold(
16-
appBar: AppBar(),
17+
body: Column(
18+
children: [
19+
SizedBox(height: 10),
20+
Padding(
21+
padding: const EdgeInsets.only(left: 20),
22+
child: Text(
23+
"Today",
24+
style: GoogleFonts.roboto(
25+
color: const Color.fromARGB(255, 7, 36, 59),
26+
fontSize: 20,
27+
fontWeight: FontWeight.w600),
28+
),
29+
),
30+
SizedBox(height: 20),
31+
ListView.builder(itemBuilder: ((context, index) {
32+
return ListTile(
33+
34+
);
35+
}))
36+
],
37+
),
1738
);
1839
}
19-
}
40+
}

‎lib/notifyTabs/n_bookmark.dart

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
// ignore_for_file: prefer_const_constructors, camel_case_types
2+
13
import 'package:flutter/material.dart';
24

3-
class n_bookmark extends StatefulWidget {
4-
const n_bookmark({super.key});
5+
class nBookMark extends StatefulWidget {
6+
const nBookMark({super.key});
57

68
@override
7-
State<n_bookmark> createState() => _n_bookmarkState();
9+
State<nBookMark> createState() => _nBookMarkState();
810
}
911

10-
class _n_bookmarkState extends State<n_bookmark> {
12+
class _nBookMarkState extends State<nBookMark> {
1113
@override
1214
Widget build(BuildContext context) {
1315
return Scaffold();

‎lib/notifyTabs/n_share.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
import 'package:flutter/material.dart';
44

5-
class N_share extends StatefulWidget {
6-
const N_share({super.key});
5+
class NotifyShare extends StatefulWidget {
6+
const NotifyShare({super.key});
77

88
@override
9-
State<N_share> createState() => _N_shareState();
9+
State<NotifyShare> createState() => _NotifyShareState();
1010
}
1111

12-
class _N_shareState extends State<N_share> {
12+
class _NotifyShareState extends State<NotifyShare> {
1313
@override
1414
Widget build(BuildContext context) {
1515
return Scaffold();

‎linux/flutter/generated_plugin_registrant.cc

+4
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
}

‎linux/flutter/generated_plugins.cmake

+1
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

‎macos/Flutter/GeneratedPluginRegistrant.swift

+2
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 share_plus
910

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

‎pubspec.lock

+102-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ packages:
5757
url: "https://pub.dev"
5858
source: hosted
5959
version: "2.0.2"
60+
cross_file:
61+
dependency: transitive
62+
description:
63+
name: cross_file
64+
sha256: "2f9d2cbccb76127ba28528cb3ae2c2326a122446a83de5a056aaa3880d3882c5"
65+
url: "https://pub.dev"
66+
source: hosted
67+
version: "0.3.3+7"
6068
crypto:
6169
dependency: transitive
6270
description:
@@ -89,6 +97,14 @@ packages:
8997
url: "https://pub.dev"
9098
source: hosted
9199
version: "2.1.0"
100+
file:
101+
dependency: transitive
102+
description:
103+
name: file
104+
sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
105+
url: "https://pub.dev"
106+
source: hosted
107+
version: "7.0.0"
92108
flutter:
93109
dependency: "direct main"
94110
description: flutter
@@ -115,6 +131,11 @@ packages:
115131
description: flutter
116132
source: sdk
117133
version: "0.0.0"
134+
flutter_web_plugins:
135+
dependency: transitive
136+
description: flutter
137+
source: sdk
138+
version: "0.0.0"
118139
google_fonts:
119140
dependency: "direct main"
120141
description:
@@ -147,6 +168,14 @@ packages:
147168
url: "https://pub.dev"
148169
source: hosted
149170
version: "4.0.2"
171+
js:
172+
dependency: transitive
173+
description:
174+
name: js
175+
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
176+
url: "https://pub.dev"
177+
source: hosted
178+
version: "0.6.7"
150179
lints:
151180
dependency: transitive
152181
description:
@@ -179,6 +208,14 @@ packages:
179208
url: "https://pub.dev"
180209
source: hosted
181210
version: "1.9.1"
211+
mime:
212+
dependency: transitive
213+
description:
214+
name: mime
215+
sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
216+
url: "https://pub.dev"
217+
source: hosted
218+
version: "1.0.4"
182219
path:
183220
dependency: transitive
184221
description:
@@ -251,6 +288,22 @@ packages:
251288
url: "https://pub.dev"
252289
source: hosted
253290
version: "2.1.6"
291+
share_plus:
292+
dependency: "direct main"
293+
description:
294+
name: share_plus
295+
sha256: f74fc3f1cbd99f39760182e176802f693fa0ec9625c045561cfad54681ea93dd
296+
url: "https://pub.dev"
297+
source: hosted
298+
version: "7.2.1"
299+
share_plus_platform_interface:
300+
dependency: transitive
301+
description:
302+
name: share_plus_platform_interface
303+
sha256: df08bc3a07d01f5ea47b45d03ffcba1fa9cd5370fb44b3f38c70e42cced0f956
304+
url: "https://pub.dev"
305+
source: hosted
306+
version: "3.3.1"
254307
sky_engine:
255308
dependency: transitive
256309
description: flutter
@@ -264,6 +317,14 @@ packages:
264317
url: "https://pub.dev"
265318
source: hosted
266319
version: "1.10.0"
320+
sprintf:
321+
dependency: transitive
322+
description:
323+
name: sprintf
324+
sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23"
325+
url: "https://pub.dev"
326+
source: hosted
327+
version: "7.0.0"
267328
stack_trace:
268329
dependency: transitive
269330
description:
@@ -320,6 +381,46 @@ packages:
320381
url: "https://pub.dev"
321382
source: hosted
322383
version: "1.3.2"
384+
url_launcher_linux:
385+
dependency: transitive
386+
description:
387+
name: url_launcher_linux
388+
sha256: "9f2d390e096fdbe1e6e6256f97851e51afc2d9c423d3432f1d6a02a8a9a8b9fd"
389+
url: "https://pub.dev"
390+
source: hosted
391+
version: "3.1.0"
392+
url_launcher_platform_interface:
393+
dependency: transitive
394+
description:
395+
name: url_launcher_platform_interface
396+
sha256: "980e8d9af422f477be6948bdfb68df8433be71f5743a188968b0c1b887807e50"
397+
url: "https://pub.dev"
398+
source: hosted
399+
version: "2.2.0"
400+
url_launcher_web:
401+
dependency: transitive
402+
description:
403+
name: url_launcher_web
404+
sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2"
405+
url: "https://pub.dev"
406+
source: hosted
407+
version: "2.2.0"
408+
url_launcher_windows:
409+
dependency: transitive
410+
description:
411+
name: url_launcher_windows
412+
sha256: "7754a1ad30ee896b265f8d14078b0513a4dba28d358eabb9d5f339886f4a1adc"
413+
url: "https://pub.dev"
414+
source: hosted
415+
version: "3.1.0"
416+
uuid:
417+
dependency: transitive
418+
description:
419+
name: uuid
420+
sha256: df5a4d8f22ee4ccd77f8839ac7cb274ebc11ef9adcce8b92be14b797fe889921
421+
url: "https://pub.dev"
422+
source: hosted
423+
version: "4.2.1"
323424
vector_math:
324425
dependency: transitive
325426
description:
@@ -354,4 +455,4 @@ packages:
354455
version: "1.0.3"
355456
sdks:
356457
dart: ">=3.1.5 <4.0.0"
357-
flutter: ">=3.7.0"
458+
flutter: ">=3.13.0"

‎pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ dependencies:
4242
toggle_switch: ^2.1.0
4343
country_icons: ^2.0.2
4444
flutter_carousel_widget: ^2.1.2
45+
share_plus: ^7.2.1
4546

4647
dev_dependencies:
4748
flutter_test:

‎windows/flutter/generated_plugin_registrant.cc

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
#include "generated_plugin_registrant.h"
88

9+
#include <share_plus/share_plus_windows_plugin_c_api.h>
10+
#include <url_launcher_windows/url_launcher_windows.h>
911

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

‎windows/flutter/generated_plugins.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#
44

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

810
list(APPEND FLUTTER_FFI_PLUGIN_LIST

0 commit comments

Comments
 (0)
Please sign in to comment.