diff --git a/lib/screens/myWallets/wallets_home.dart b/lib/screens/myWallets/wallets_home.dart index 3188b62..754b175 100644 --- a/lib/screens/myWallets/wallets_home.dart +++ b/lib/screens/myWallets/wallets_home.dart @@ -24,10 +24,49 @@ import 'package:gecko/widgets/commons/smooth_transition.dart'; import 'package:provider/provider.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:truncate/truncate.dart'; +import 'package:tutorial_coach_mark/tutorial_coach_mark.dart'; -class WalletsHome extends StatelessWidget { +class WalletsHome extends StatefulWidget { const WalletsHome({Key? key}) : super(key: key); + @override + State createState() => _WalletsHomeState(); +} + +class _WalletsHomeState extends State { + final safeKey = GlobalKey(); + // List targets = []; + + @override + void initState() { + // targets + // .add(TargetFocus(identify: "Target 1", keyTarget: safeKey, contents: [ + // TargetContent( + // align: ContentAlign.right, + // child: Column( + // mainAxisSize: MainAxisSize.min, + // crossAxisAlignment: CrossAxisAlignment.start, + // children: const [ + // Text( + // "Titulo lorem ipsum", + // style: TextStyle( + // fontWeight: FontWeight.bold, + // color: Colors.white, + // fontSize: 20.0), + // ), + // Padding( + // padding: EdgeInsets.only(top: 10.0), + // child: Text( + // "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin pulvinar tortor eget maximus iaculis.", + // style: TextStyle(color: Colors.white), + // ), + // ) + // ], + // )) + // ])); + super.initState(); + } + @override Widget build(BuildContext context) { final myWalletProvider = Provider.of(context); @@ -252,7 +291,7 @@ class WalletsHome extends StatelessWidget { // return Offset(d.feedbackOffset.dx - 30, d.feedbackOffset.dy - 0); // } - showTutorial(); + // showTutorial(); // Future.delayed(const Duration(seconds: 1), showTutorial); return CustomScrollView(slivers: [ diff --git a/pubspec.lock b/pubspec.lock index 2a87403..61615f5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1097,6 +1097,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.2.0" + riverpod: + dependency: "direct main" + description: + name: riverpod + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.1" rxdart: dependency: transitive description: @@ -1235,6 +1242,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.10.0" + state_notifier: + dependency: transitive + description: + name: state_notifier + url: "https://pub.dartlang.org" + source: hosted + version: "0.7.2+1" stream_channel: dependency: transitive description: @@ -1291,6 +1305,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "3.0.1" + tutorial_coach_mark: + dependency: "direct main" + description: + name: tutorial_coach_mark + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.4" typed_data: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 9fc040b..4debd9a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -63,6 +63,8 @@ dependencies: fast_base58: ^0.2.1 graphql: ^5.1.1 hive_generator: ^2.0.0 + riverpod: ^2.1.1 + tutorial_coach_mark: ^1.2.4 dev_dependencies: # flutter_launcher_icons: ^0.9.2