2020-10-07 02:33:06 +06:30
|
|
|
import 'package:fcs/pages/contact/contact_page.dart';
|
|
|
|
|
import 'package:fcs/pages/term/term_page.dart';
|
|
|
|
|
import 'package:fcs/pages/widgets/bottom_up_page_route.dart';
|
|
|
|
|
import 'package:fcs/pages/widgets/local_text.dart';
|
2020-09-07 00:47:02 +06:30
|
|
|
import 'package:flutter/cupertino.dart';
|
2020-09-04 15:30:10 +06:30
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
|
import 'package:flutter_icons/flutter_icons.dart';
|
|
|
|
|
|
|
|
|
|
class BottomWidgets extends StatelessWidget {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
2020-09-18 04:04:21 +06:30
|
|
|
Navigator.of(context).push(BottomUpPageRoute(ContactPage()));
|
2020-09-04 15:30:10 +06:30
|
|
|
},
|
2020-09-07 16:05:28 +06:30
|
|
|
child: _buildSmallButton(
|
|
|
|
|
context, "contact.btn", SimpleLineIcons.support),
|
2020-09-04 15:30:10 +06:30
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
2020-09-18 04:04:21 +06:30
|
|
|
Navigator.of(context).push(BottomUpPageRoute(TermPage()));
|
2020-09-04 15:30:10 +06:30
|
|
|
},
|
2020-09-07 16:05:28 +06:30
|
|
|
child: _buildSmallButton(context, "term.btn", Icons.info_outline),
|
2020-09-04 15:30:10 +06:30
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-07 16:05:28 +06:30
|
|
|
Widget _buildSmallButton(
|
|
|
|
|
BuildContext context, String textKey, IconData iconData) {
|
2020-09-04 15:30:10 +06:30
|
|
|
return Padding(
|
|
|
|
|
padding: const EdgeInsets.all(18.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(right: 5),
|
|
|
|
|
child: Icon(iconData, color: Colors.white70, size: 20),
|
|
|
|
|
),
|
2020-09-07 16:05:28 +06:30
|
|
|
LocalText(context, textKey, color: Colors.white70)
|
2020-09-04 15:30:10 +06:30
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|