Skip to content

Commit 19668f5

Browse files
fix example android version
remove un used code
1 parent 8e09d9b commit 19668f5

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

example/android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.4.32'
2+
ext.kotlin_version = '1.8.21'
33
repositories {
44
google()
55
jcenter()
@@ -26,6 +26,6 @@ subprojects {
2626
project.evaluationDependsOn(':app')
2727
}
2828

29-
task clean(type: Delete) {
29+
tasks.register("clean", Delete) {
3030
delete rootProject.buildDir
3131
}

example/lib/main.dart

+4-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class _MailPageState extends State<MailPage> {
5656
final GlobalKey _two = GlobalKey();
5757
final GlobalKey _three = GlobalKey();
5858
final GlobalKey _four = GlobalKey();
59-
// final GlobalKey _five = GlobalKey();
59+
final GlobalKey _five = GlobalKey();
60+
final GlobalKey twoWidgetKey = GlobalKey();
6061
List<Mail> mails = [];
6162

6263
final scrollController = ScrollController();
@@ -308,10 +309,10 @@ class _MailPageState extends State<MailPage> {
308309
physics: const BouncingScrollPhysics(),
309310
itemBuilder: (context, index) {
310311
if (index == 0) {
311-
return showcaseMailTile([_three, _five], true, context, mails.first);
312+
return showcaseMailTile([_three, twoWidgetKey], true, context, mails.first);
312313
}
313314
return MailTile(
314-
key: index == 2 ? _five : null,
315+
key: index == 2 ? twoWidgetKey : null,
315316
mail: mails[index % mails.length],
316317
);
317318
},
@@ -599,8 +600,6 @@ class NewWidget extends StatelessWidget {
599600

600601
@override
601602
Widget build(BuildContext context) {
602-
print(parentContext.widget.runtimeType.toString());
603-
print(parentContext?.findAncestorWidgetOfExactType<MailTile>());
604603
return Row(
605604
children: [
606605
GestureDetector(

0 commit comments

Comments
 (0)