2020-02-28 20:16:39 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:cake_wallet/generated/i18n.dart';
|
|
|
|
import 'package:cake_wallet/src/widgets/primary_button.dart';
|
|
|
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
2020-03-02 18:11:27 +00:00
|
|
|
import 'package:cake_wallet/src/screens/seed_language/widgets/seed_language_picker.dart';
|
2020-02-28 20:16:39 +00:00
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:cake_wallet/src/stores/seed_language/seed_language_store.dart';
|
|
|
|
|
|
|
|
class SeedLanguage extends BasePage {
|
|
|
|
final imageSeed = Image.asset('assets/images/seedIco.png');
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget body(BuildContext context) {
|
|
|
|
final seedLanguageStore = Provider.of<SeedLanguageStore>(context);
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.all(20.0),
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
Expanded(
|
|
|
|
child: Center(
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: <Widget>[
|
|
|
|
imageSeed,
|
|
|
|
Text(
|
|
|
|
S.of(context).seed_language_choose,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(fontSize: 19.0),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 20.0,
|
|
|
|
),
|
2020-03-02 18:11:27 +00:00
|
|
|
SeedLanguagePicker(),
|
2020-02-28 20:16:39 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
PrimaryButton(
|
|
|
|
onPressed: () =>
|
|
|
|
Navigator.of(context).popAndPushNamed(seedLanguageStore.currentRoute),
|
|
|
|
text: S.of(context).seed_language_next,
|
|
|
|
color:
|
|
|
|
Theme.of(context).primaryTextTheme.button.backgroundColor,
|
|
|
|
borderColor:
|
|
|
|
Theme.of(context).primaryTextTheme.button.decorationColor),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|