mirrored_repositories/FlutterBMI/lib/view
import 'package:bmi_calculator/core/constants.dart';
import 'package:flutter/material.dart';
import 'package:launch_review/launch_review.dart';

class AboutUsView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0.0,
        centerTitle: false,
        title: Text(
          'About App',
          textScaleFactor: 1.2,
          textDirection: TextDirection.ltr,
          textAlign: TextAlign.start,
          style: Theme.of(context).appBarTheme.titleTextStyle!.copyWith(
                fontSize: 20,
                fontWeight: FontWeight.bold,
              ),
        ),
      ),
      body: Container(
        color: Theme.of(context).primaryColor,
        width: MediaQuery.of(context).size.width,
        height: MediaQuery.of(context).size.height,
        child: Stack(
          fit: StackFit.loose,
          children: <Widget>[
            Container(
              // height: 190.0,
              child: Image(
                image: AssetImage("Assets/Images/banner.jpg"),
                // height: 200.0,
              ),
            ),
            Container(
              margin: EdgeInsets.fromLTRB(20.0, 210.0, 0.0, 0.0),
              child: Column(
                children: <Widget>[
                  Row(
                    crossAxisAlignment: CrossAxisAlignment.center,
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      Image(
                        image: AssetImage("Assets/Images/ic_launcher.png"),
                        height: 30.0,
                        width: 30.0,
                      ),
                      Text(
                        " BMI.",
                        style: TextStyle(
                          fontWeight: FontWeight.bold,
                          fontSize: 18.0,
                        ),
                      ),
                      Text(
                        " Calculator".toUpperCase(),
                        style: TextStyle(
                            fontWeight: FontWeight.normal,
                            fontSize: 16.0,
                            color: Colors.grey.shade600),
                      ),
                    ],
                  ),
                  Divider(
                    color: Colors.grey,
                    indent: 5.0,
                    endIndent: 20.0,
                  ),
                  Padding(
                    padding: EdgeInsets.fromLTRB(5.0, 10.0, 20.0, 0.0),
                    child: Text(
                      aboutBMI,
                      style: TextStyle(fontSize: 14.0),
                      textAlign: TextAlign.justify,
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.all(8.0),
                    child: MaterialButton(
                      shape: RoundedRectangleBorder(
                          borderRadius: new BorderRadius.circular(30.0)),
                      color: Colors.deepPurple,
                      child: Text("Read More..."),
                      textColor: Theme.of(context).primaryColor,
                      onPressed: () {
                        LaunchReview.launch(
                            androidAppId: "com.nividata.bmi_calculator",
                            iOSAppId: "id1488893444");
                      },
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.all(8.0),
                    child: Row(
                      crossAxisAlignment: CrossAxisAlignment.center,
                      mainAxisAlignment: MainAxisAlignment.center,
                      children: <Widget>[
                        Text(
                          "Send us your feedback on ",
                          style: TextStyle(
                              fontSize: 11.0, fontWeight: FontWeight.w500),
                        ),
                        SelectableText(
                          "info@nividata.com",
                          style: TextStyle(
                              color: Colors.blue,
                              fontSize: 11.0,
                              fontWeight: FontWeight.w500),
                        ),
                      ],
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.fromLTRB(0.0, 80.0, 0.0, 5.0),
                    child: Text(
                      "V" + platformVersion,
                      style: TextStyle(fontWeight: FontWeight.w900),
                    ),
                  ),
                  Text(
                    "App is up to date",
                    style: TextStyle(
                        fontWeight: FontWeight.normal,
                        fontSize: 11.0,
                        color: Colors.grey),
                  ),
                ],
              ),
            )
          ],
        ),
      ),
    );
  }
}
