Fix text for small screens

This commit is contained in:
poka 2021-04-27 12:52:43 +02:00
parent 1a604bfb5a
commit 347aff7059
2 changed files with 11 additions and 8 deletions

View File

@ -106,13 +106,13 @@ class OnboardingStepTen extends StatelessWidget {
// ),
SizedBox(height: isTall ? 70 : 10),
if (isTall)
Text('${_generateWalletProvider.nbrWord + 1}',
key: Key('askedWord'),
style: TextStyle(
fontSize: 17,
color: Color(0xffD28928),
fontWeight: FontWeight.w400)),
Text('${_generateWalletProvider.nbrWord + 1}',
key: Key('askedWord'),
style: TextStyle(
fontSize: isTall ? 17 : 10,
color: Color(0xffD28928),
fontWeight: FontWeight.w400)),
SizedBox(height: isTall ? 10 : 0),
Container(
decoration: BoxDecoration(

View File

@ -93,12 +93,15 @@ void main() {
await getText('step7'), "C'est le moment de noter votre phrase !");
await tapOn('goStep8');
await Future.delayed(const Duration(milliseconds: 50));
await Future.delayed(const Duration(milliseconds: 200));
String goodWord = words[int.parse(
await getText('askedWord'),
)];
// await tapOn('inputWord');
// await Future.delayed(const Duration(milliseconds: 500));
// Enter the expected word
await driver.enterText(goodWord);