The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Fl
By Guest on 7th March 2023 10:24:30 AM | Syntax: TEXT | Views: 19



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. import 'package:flutter/material.dart';
  2.  
  3. class LoginScreen extends StatelessWidget {
  4.   const LoginScreen({super.key});
  5.  
  6.   @override
  7.   Widget build(BuildContext context) {
  8.     return Card(
  9.       margin: const EdgeInsets.symmetric(vertical: 165, horizontal: 89),
  10.       elevation: 54,
  11.       child: Column(
  12.         children: [
  13.           const Image(
  14.             image: AssetImage('assets/images/1160082.png'),
  15.           ),
  16.           const Text(
  17.             'User Login',
  18.             style: TextStyle(fontSize: 35),
  19.           ),
  20.           // ignore: prefer_const_constructors
  21.           TextField(
  22.             keyboardType: TextInputType.number,
  23.             decoration: const InputDecoration(hintText: 'Phone Number'),
  24.           ),
  25.           // ignore: prefer_const_constructors
  26.           TextField(
  27.             keyboardType: TextInputType.visiblePassword,
  28.             decoration: const InputDecoration(hintText: 'Password'),
  29.           ),
  30.           ElevatedButton(onPressed: () {}, child: const Text('Login'))
  31.         ],
  32.       ),
  33.     );
  34.   }
  35. }



  • Recent Pastes