Fix text for small screens
This commit is contained in:
parent
1a604bfb5a
commit
347aff7059
|
@ -106,13 +106,13 @@ class OnboardingStepTen extends StatelessWidget {
|
||||||
// ),
|
// ),
|
||||||
|
|
||||||
SizedBox(height: isTall ? 70 : 10),
|
SizedBox(height: isTall ? 70 : 10),
|
||||||
if (isTall)
|
|
||||||
Text('${_generateWalletProvider.nbrWord + 1}',
|
Text('${_generateWalletProvider.nbrWord + 1}',
|
||||||
key: Key('askedWord'),
|
key: Key('askedWord'),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 17,
|
fontSize: isTall ? 17 : 10,
|
||||||
color: Color(0xffD28928),
|
color: Color(0xffD28928),
|
||||||
fontWeight: FontWeight.w400)),
|
fontWeight: FontWeight.w400)),
|
||||||
SizedBox(height: isTall ? 10 : 0),
|
SizedBox(height: isTall ? 10 : 0),
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
|
|
@ -93,12 +93,15 @@ void main() {
|
||||||
await getText('step7'), "C'est le moment de noter votre phrase !");
|
await getText('step7'), "C'est le moment de noter votre phrase !");
|
||||||
|
|
||||||
await tapOn('goStep8');
|
await tapOn('goStep8');
|
||||||
await Future.delayed(const Duration(milliseconds: 50));
|
await Future.delayed(const Duration(milliseconds: 200));
|
||||||
|
|
||||||
String goodWord = words[int.parse(
|
String goodWord = words[int.parse(
|
||||||
await getText('askedWord'),
|
await getText('askedWord'),
|
||||||
)];
|
)];
|
||||||
|
|
||||||
|
// await tapOn('inputWord');
|
||||||
|
// await Future.delayed(const Duration(milliseconds: 500));
|
||||||
|
|
||||||
// Enter the expected word
|
// Enter the expected word
|
||||||
await driver.enterText(goodWord);
|
await driver.enterText(goodWord);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue