1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 14:29:22 +00:00
comunicmobile/lib/ui/widgets/tour/first_pane.dart

37 lines
1.0 KiB
Dart

import 'package:comunic/models/config.dart';
import 'package:comunic/ui/widgets/tour/fixed_tour_size_text_area.dart';
import 'package:comunic/utils/intl_utils.dart';
import 'package:flutter/material.dart';
/// First tour pane
///
/// @author Pierre Hubert
class FirstTourPane extends StatelessWidget {
final String msgOne;
final String msgTwo;
const FirstTourPane({Key key, this.msgOne, this.msgTwo}) : super(key: key);
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Spacer(flex: 3),
Text(
config().appName,
style: TextStyle(fontSize: 25),
),
Spacer(flex: 2),
FixedTourSizeTextArea(msgOne ??
tr("Welcome to Comunic, the social network that respect your privacy!")),
Spacer(flex: 1),
FixedTourSizeTextArea(msgTwo ??
tr("Let's configure a few things and present you some features of the network...")),
Spacer(flex: 3),
],
);
}
}