show admin
This commit is contained in:
parent
1abd80e9ba
commit
e8b0d87b2e
3 changed files with 87 additions and 97 deletions
Binary file not shown.
|
|
@ -46,7 +46,6 @@ class SettingsPage extends StatelessWidget {
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10.0.w),
|
padding: EdgeInsets.symmetric(horizontal: 10.0.w),
|
||||||
child: Expanded(
|
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
|
|
@ -93,7 +92,7 @@ class SettingsPage extends StatelessWidget {
|
||||||
setOnTap: (v) => !(v ?? false),
|
setOnTap: (v) => !(v ?? false),
|
||||||
),
|
),
|
||||||
Divider(
|
Divider(
|
||||||
height: 5,
|
height: 1,
|
||||||
color: borderGray.withOpacity(0.2),
|
color: borderGray.withOpacity(0.2),
|
||||||
),
|
),
|
||||||
SimpleTile.text(
|
SimpleTile.text(
|
||||||
|
|
@ -126,17 +125,11 @@ class SettingsPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
Column(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
|
||||||
SizedBox(
|
|
||||||
height: 32.0.h,
|
|
||||||
),
|
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10.0.w),
|
padding:
|
||||||
|
EdgeInsets.only(left: 10.0.w, right: 10.w, top: 32.h),
|
||||||
child: LinkButton(
|
child: LinkButton(
|
||||||
'Политика конфиденциальности',
|
'Политика конфиденциальности',
|
||||||
() {
|
() {
|
||||||
|
|
@ -147,8 +140,6 @@ class SettingsPage extends StatelessWidget {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
const BigBackButton(),
|
const BigBackButton(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ class UserStatistics extends StatelessWidget {
|
||||||
final lastDigit = learnedWordsLength % 10;
|
final lastDigit = learnedWordsLength % 10;
|
||||||
final String? totalWordsText;
|
final String? totalWordsText;
|
||||||
if (learnedWordsLength == 0) {
|
if (learnedWordsLength == 0) {
|
||||||
totalWordsText = null;
|
totalWordsText = 'Словарик';
|
||||||
} else if (lastDigit == 0 || lastDigit >= 5) {
|
} else if (lastDigit == 0 || lastDigit >= 5) {
|
||||||
totalWordsText = 'Ты уже знаешь $learnedWordsLength слов!';
|
totalWordsText = 'Ты уже знаешь $learnedWordsLength слов!';
|
||||||
} else if (lastDigit == 1) {
|
} else if (lastDigit == 1) {
|
||||||
|
|
@ -37,10 +37,9 @@ class UserStatistics extends StatelessWidget {
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 8.0),
|
padding: EdgeInsets.only(bottom: 8.0.h, top: 8.0.h),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
if (totalWordsText != null)
|
|
||||||
Text(
|
Text(
|
||||||
totalWordsText,
|
totalWordsText,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue