add tuto package; safe_home is stateful
This commit is contained in:
parent
9983ea9f78
commit
8382cbfc29
|
@ -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>[
|
||||
|
|
21
pubspec.lock
21
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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue