@@ -44,9 +44,9 @@ class _MainDrawerWidgetState extends State<MainDrawerWidget> {
4444 }
4545
4646 final textAndIconColor = isDarkMode ? Colors .black : Colors .white;
47- final listTileTextStyle = Theme .of (context).textTheme.titleMedium ? . copyWith (
48- color : textAndIconColor ,
49- );
47+ final listTileTextStyle = Theme .of (
48+ context ,
49+ ).textTheme.titleMedium ? . copyWith (color : textAndIconColor );
5050 const expansionTileChildrenPadding = EdgeInsets .only (left: 16 );
5151
5252 return ZoomDrawer (
@@ -80,19 +80,14 @@ class _MainDrawerWidgetState extends State<MainDrawerWidget> {
8080 horizontalSpaceSmall,
8181 Text (
8282 appTitle,
83- style:
84- Theme .of (context).textTheme.titleLarge? .copyWith (
85- color: textAndIconColor,
86- ),
83+ style: Theme .of (context).textTheme.titleLarge
84+ ? .copyWith (color: textAndIconColor),
8785 ),
8886 ],
8987 ),
9088 Padding (
9189 padding: const EdgeInsets .only (right: 16 ),
92- child: Icon (
93- Icons .close,
94- color: textAndIconColor,
95- ),
90+ child: Icon (Icons .close, color: textAndIconColor),
9691 ),
9792 ],
9893 ),
@@ -105,10 +100,7 @@ class _MainDrawerWidgetState extends State<MainDrawerWidget> {
105100 Icons .share_outlined,
106101 color: textAndIconColor,
107102 ),
108- title: Text (
109- 'Share' ,
110- style: listTileTextStyle,
111- ),
103+ title: Text ('Share' , style: listTileTextStyle),
112104 onTap: () async {
113105 final result = await Share .share (
114106 'Check out our app at https://' ,
@@ -155,10 +147,7 @@ class _MainDrawerWidgetState extends State<MainDrawerWidget> {
155147 Icons .info_outline,
156148 color: textAndIconColor,
157149 ),
158- title: Text (
159- 'About Us' ,
160- style: listTileTextStyle,
161- ),
150+ title: Text ('About Us' , style: listTileTextStyle),
162151 onTap: () async {
163152 final aboutBoxChildren = < Widget > [
164153 verticalSpaceMedium,
@@ -190,10 +179,7 @@ ${packageInfo.version} ${packageInfo.buildNumber}''',
190179 Icons .logout_outlined,
191180 color: textAndIconColor,
192181 ),
193- title: Text (
194- 'Logout' ,
195- style: listTileTextStyle,
196- ),
182+ title: Text ('Logout' , style: listTileTextStyle),
197183 onTap: () async {
198184 await widget.controller.close !();
199185 await widget.logoutFunction ();
@@ -214,21 +200,27 @@ ${packageInfo.version} ${packageInfo.buildNumber}''',
214200 LinkTile (
215201 imagePath: 'assets/images/pubdev.png' ,
216202 title: 'surrealdb_js' ,
217- url: Uri .parse ('https://pub.dev/packages/surrealdb_js$defaultUtmParams ' ),
203+ url: Uri .parse (
204+ 'https://pub.dev/packages/surrealdb_js$defaultUtmParams ' ,
205+ ),
218206 textStyle: listTileTextStyle,
219207 onUrlLaunched: _analyticsFacade.trackUrlOpened,
220208 ),
221209 LinkTile (
222210 imagePath: 'assets/images/pubdev.png' ,
223211 title: 'surrealdb_wasm' ,
224- url: Uri .parse ('https://pub.dev/packages/surrealdb_wasm$defaultUtmParams ' ),
212+ url: Uri .parse (
213+ 'https://pub.dev/packages/surrealdb_wasm$defaultUtmParams ' ,
214+ ),
225215 textStyle: listTileTextStyle,
226216 onUrlLaunched: _analyticsFacade.trackUrlOpened,
227217 ),
228218 LinkTile (
229219 imagePath: 'assets/images/pypi.png' ,
230220 title: 'open-text-embeddings' ,
231- url: Uri .parse ('https://pypi.org/project/open-text-embeddings$defaultUtmParams ' ),
221+ url: Uri .parse (
222+ 'https://pypi.org/project/open-text-embeddings$defaultUtmParams ' ,
223+ ),
232224 textStyle: listTileTextStyle,
233225 onUrlLaunched: _analyticsFacade.trackUrlOpened,
234226 ),
@@ -239,24 +231,25 @@ ${packageInfo.version} ${packageInfo.buildNumber}''',
239231 Icons .flash_on_outlined,
240232 color: textAndIconColor,
241233 ),
242- title: Text (
243- 'Powered By' ,
244- style: listTileTextStyle,
245- ),
234+ title: Text ('Powered By' , style: listTileTextStyle),
246235 childrenPadding: expansionTileChildrenPadding,
247236 shape: const Border (),
248237 children: [
249238 LinkTile (
250239 imagePath: 'assets/images/flutter.png' ,
251240 title: 'Flutter' ,
252- url: Uri .parse ('https://flutter.dev$defaultUtmParams ' ),
241+ url: Uri .parse (
242+ 'https://flutter.dev$defaultUtmParams ' ,
243+ ),
253244 textStyle: listTileTextStyle,
254245 onUrlLaunched: _analyticsFacade.trackUrlOpened,
255246 ),
256247 LinkTile (
257248 imagePath: 'assets/images/surrealdb.png' ,
258249 title: 'SurrealDB' ,
259- url: Uri .parse ('https://surrealdb.com$defaultUtmParams ' ),
250+ url: Uri .parse (
251+ 'https://app.surrealdb.com/referral?code=187n5bhtouzf0y0j' ,
252+ ),
260253 textStyle: listTileTextStyle,
261254 onUrlLaunched: _analyticsFacade.trackUrlOpened,
262255 ),
@@ -284,11 +277,7 @@ class ThankYouDialog extends StatelessWidget {
284277 content: const Column (
285278 mainAxisSize: MainAxisSize .min,
286279 children: [
287- Icon (
288- Icons .thumb_up,
289- color: Colors .green,
290- size: 48 ,
291- ),
280+ Icon (Icons .thumb_up, color: Colors .green, size: 48 ),
292281 SizedBox (height: 16 ),
293282 Text (
294283 'Thank you for sharing our app!' ,
0 commit comments