diff --git a/lib/screens/myWallets/wallets_home.dart b/lib/screens/myWallets/wallets_home.dart index 3188b6260a614a4a00341cf64a5d040c5195d72a..754b175bad372a44228fcfcc1c770f74383fe970 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<WalletsHome> createState() => _WalletsHomeState(); +} + +class _WalletsHomeState extends State<WalletsHome> { + final safeKey = GlobalKey(); + // List<TargetFocus> 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 <Widget>[ + // 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<MyWalletsProvider>(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: <Widget>[ diff --git a/pubspec.lock b/pubspec.lock index 2a874036aafc52bc280c5edc09caaaa423ccbc72..61615f52bcbaef78ea345d671b5b3d2ba1b8af08 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 9fc040bc4d574b41bb1bd076a8e5d282363e0fc7..4debd9a5f01de3067cea8b1dfeabd193c5e7b1eb 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