Merge branch 'master' of https://git.mokkon.com/sainw/fcs
This commit is contained in:
@@ -16,6 +16,7 @@ import 'package:provider/provider.dart';
|
||||
import '../theme/theme.dart';
|
||||
import 'profile_page.dart';
|
||||
import 'signin_page.dart';
|
||||
import 'term.dart';
|
||||
|
||||
final msgLog = Logger('backgroundMessageHandler');
|
||||
|
||||
@@ -141,8 +142,41 @@ class _HomePageWelcomeState extends State<HomePageWelcome> {
|
||||
Expanded(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(100.0),
|
||||
child: Text(
|
||||
"Welcome!",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 28,
|
||||
fontFamily: "Roboto"),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 80.0),
|
||||
child: Text(
|
||||
"Cargo Services",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 28,
|
||||
fontFamily: "Roboto"),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Text(
|
||||
"by FCS Trading",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 18,
|
||||
fontFamily: "Roboto"),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.only(top: 50),
|
||||
padding: EdgeInsets.only(top: 10, bottom: 10),
|
||||
child: CircleAvatar(
|
||||
radius: (50),
|
||||
backgroundColor: Colors.white,
|
||||
@@ -151,80 +185,83 @@ class _HomePageWelcomeState extends State<HomePageWelcome> {
|
||||
child: Image.asset("assets/logo.jpg"),
|
||||
)),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Text(
|
||||
"Welcome Cargo Services\nby FCS Trading",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 18,
|
||||
fontFamily: "Roboto"),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Row(
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
child: Container(
|
||||
height: 200,
|
||||
child: DimensionBox(
|
||||
length: length,
|
||||
width: width,
|
||||
height: height,
|
||||
),
|
||||
),
|
||||
),
|
||||
RotatedBox(
|
||||
quarterTurns: -1,
|
||||
child: Slider(
|
||||
min: 6,
|
||||
max: 100,
|
||||
value: height,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
height = value;
|
||||
});
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: <Widget>[
|
||||
Slider(
|
||||
label: "Length",
|
||||
min: 6,
|
||||
max: 100,
|
||||
value: length,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
length = value;
|
||||
});
|
||||
},
|
||||
),
|
||||
Slider(
|
||||
label: "Width",
|
||||
min: 6,
|
||||
max: 100,
|
||||
value: width,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
width = value;
|
||||
});
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
// Row(
|
||||
// children: <Widget>[
|
||||
// Expanded(
|
||||
// child: Container(
|
||||
// height: 200,
|
||||
// // child: DimensionBox(
|
||||
// // dimension: Dimension(length, width, height),
|
||||
// // color: secondaryColor,
|
||||
// // ),
|
||||
// ),
|
||||
// ),
|
||||
// RotatedBox(
|
||||
// quarterTurns: -1,
|
||||
// child: Slider(
|
||||
// min: 6,
|
||||
// max: 100,
|
||||
// value: height,
|
||||
// onChanged: (value) {
|
||||
// setState(() {
|
||||
// height = value;
|
||||
// });
|
||||
// },
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
// children: <Widget>[
|
||||
// Slider(
|
||||
// label: "Length",
|
||||
// min: 6,
|
||||
// max: 100,
|
||||
// value: length,
|
||||
// onChanged: (value) {
|
||||
// setState(() {
|
||||
// length = value;
|
||||
// });
|
||||
// },
|
||||
// ),
|
||||
// Slider(
|
||||
// label: "Width",
|
||||
// min: 6,
|
||||
// max: 100,
|
||||
// value: width,
|
||||
// onChanged: (value) {
|
||||
// setState(() {
|
||||
// width = value;
|
||||
// });
|
||||
// },
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
// _buildSmallButton(
|
||||
// "Policies", FontAwesomeIcons.fileContract),
|
||||
_buildSmallButton(
|
||||
"Contact Us", SimpleLineIcons.support),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(builder: (_) => Contact()));
|
||||
},
|
||||
child: _buildSmallButton(
|
||||
"Contact Us", SimpleLineIcons.support),
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(builder: (_) => Term()));
|
||||
},
|
||||
child: _buildSmallButton(
|
||||
"Terms of services", Icons.info_outline),
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
@@ -245,25 +282,28 @@ class _HomePageWelcomeState extends State<HomePageWelcome> {
|
||||
}
|
||||
|
||||
Widget _buildSmallButton(String text, IconData iconData) {
|
||||
return InkWell(
|
||||
onTap: () => {
|
||||
Navigator.of(context)
|
||||
.push(MaterialPageRoute(builder: (_) => Contact())),
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(18.0),
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
IconButton(
|
||||
icon: Icon(iconData, color: Colors.white70),
|
||||
color: Colors.white70,
|
||||
onPressed: null),
|
||||
Text(
|
||||
text,
|
||||
style: subMenuStyle,
|
||||
)
|
||||
],
|
||||
),
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(18.0),
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
IconButton(
|
||||
icon: Icon(iconData, color: Colors.white70),
|
||||
color: Colors.white70,
|
||||
onPressed: null),
|
||||
// RaisedButton(onPressed: ()=>{},child: Row(
|
||||
// children: <Widget>[
|
||||
// IconButton(
|
||||
// icon: Icon(iconData, ),
|
||||
// onPressed: null),
|
||||
// Text(text),
|
||||
// ],
|
||||
// ),color: Colors.transparent,
|
||||
// focusColor: Colors.transparent,),
|
||||
Text(
|
||||
text,
|
||||
style: subMenuStyle,
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user