mirrored_repositories/input-selection-widget/input_selection_widget/lib
import 'package:flutter/material.dart';

class DetailRegister extends StatefulWidget {

  String nUser;
  String nPassword, nEmail;

  //constructor
  DetailRegister({this.nUser, this.nEmail, this.nPassword});
//  DetailRegister(this.nPassword);

  @override
  _DetailRegisterState createState() => _DetailRegisterState();
}

class _DetailRegisterState extends State<DetailRegister> {

  //
  @override
  void setState(fn) {
    // TODO: implement setState
    super.setState(fn);
    print("Data Username ${widget.nUser}");
    print("Data Email ${widget.nEmail}");
    print("Data Password ${widget.nPassword}");

  }


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Detail Register'),
        backgroundColor: Colors.pink,
      ),

      body: Container(
        child: Column(
          children: <Widget>[
            Container(
              child: Text('Hello, ${widget.nUser}', style: TextStyle(fontSize: 16.0),),
            ),

            Container(
              child: Text('Your Email, ${widget.nEmail}', style: TextStyle(fontSize: 16.0),),
            ),

            Container(
              child: Text('Your Password, ${widget.nPassword}', style: TextStyle(fontSize: 16.0),),
            )
          ],
        ),
      ),
    );
  }
}
