SHARE
TWEET

Untitled

a guest Nov 18th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'package:flutter/material.dart';
  2. import 'user.dart';
  3.  
  4. class Screen2 extends StatefulWidget {
  5.   //declare
  6.   final User objectReceived;
  7.   Screen2({this.objectReceived});
  8.  
  9.   @override
  10.   _Screen2State createState() => _Screen2State();
  11. }
  12.  
  13. class _Screen2State extends State<Screen2> {
  14.   @override
  15.   Widget build(BuildContext context) {
  16.     return Scaffold(
  17.         appBar: AppBar(
  18.           title: Text('Screen2'),
  19.         ),
  20.         body: Center(
  21.           child: Container(
  22.             child: Text('The Password: ${widget.objectReceived.password} ', style: TextStyle(
  23.               fontSize: 30
  24.             ),),
  25.           ),
  26.         ),
  27.      
  28.     );
  29.   }
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top