Improved accessibility
This commit is contained in:
parent
6aab88bbfd
commit
4c9f9b7627
1 changed files with 7 additions and 2 deletions
|
@ -38,10 +38,15 @@ class _WelcomePageState extends State<WelcomePage> {
|
||||||
} else if (_currentPage == 4 - 1) {
|
} else if (_currentPage == 4 - 1) {
|
||||||
fabText = "Sign up";
|
fabText = "Sign up";
|
||||||
}
|
}
|
||||||
|
String fabTooltip = "Continue Tour";
|
||||||
|
if (_currentPage == 0) {
|
||||||
|
fabTooltip = "Take Tour";
|
||||||
|
} else if (_currentPage == 4 - 1) {
|
||||||
|
fabTooltip = "Create an account";
|
||||||
|
}
|
||||||
|
|
||||||
double width = MediaQuery.of(context).size.width;
|
double width = MediaQuery.of(context).size.width;
|
||||||
double height = MediaQuery.of(context).size.height;
|
double height = MediaQuery.of(context).size.height;
|
||||||
|
|
||||||
double smallest = min(width, height);
|
double smallest = min(width, height);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
@ -128,7 +133,7 @@ class _WelcomePageState extends State<WelcomePage> {
|
||||||
floatingActionButton: FloatingActionButton.extended(
|
floatingActionButton: FloatingActionButton.extended(
|
||||||
icon: const Icon(Icons.chevron_right),
|
icon: const Icon(Icons.chevron_right),
|
||||||
label: Text(fabText),
|
label: Text(fabText),
|
||||||
tooltip: 'Continue tour',
|
tooltip: fabTooltip,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (controller.page == 4 - 1) {
|
if (controller.page == 4 - 1) {
|
||||||
// open signup screen
|
// open signup screen
|
||||||
|
|
Loading…
Reference in a new issue