我正在使用 feature_discovery 0.13.0+2。我正在尝试从右侧显示功能发现。例如动画来自右侧。现在当我尝试这个时,动画来自左侧并覆盖全屏。
Scaffold(
body: Container(
alignment: Alignment.centerRight,
child: DescribedFeatureOverlay(
featureId: 'feature1',
targetColor: Colors.white,
textColor: Colors.black,
backgroundColor: Colors.purpleAccent,
contentLocation: ContentLocation.above,
title: Text(
'This is Button',
style: TextStyle(fontSize: 20.0),
),
pulseDuration: Duration(seconds: 1),
enablePulsingAnimation: true,
barrierDismissible: false,
overflowMode: OverflowMode.extendBackground,
openDuration: Duration(seconds: 1),
description: Text('This is Button you can add more details heres'),
tapTarget: Icon(Icons.radio_button_unchecked),
child: RaisedButton(
child: Text('Button'),
onPressed: () {},
color: Colors.green,
),
),
),
)