Copy and Paste  -   An Application to Copy/Paste Text  

 
S.No 5966 Name gesture Date/Time 28-Jun-2024 07:56:05 PM

Copy text from below
import 'package:flutter/material.dart';

class Person {
  final String? name;
  final int? height;

  Person({this.name, this.height});
}

void main() {
  runApp(
    MyApp(items: [
      Person(name: 'Ali', height: 33),
      Person(name: 'Faisal', height: 54),
      Person(name: 'Javed', height: 50),
    ]),
  );
}

class MyApp extends StatelessWidget {
  final List<Person> items;

  MyApp({super.key, required this.items});

  @override
  Widget build(BuildContext context) {
    const title = 'Long List';

    return MaterialApp(
      title: title,
      home: Scaffold(
        appBar: AppBar(
          title: const Text(title),
        ),
        body: ListView.builder(
          itemCount: items.length,
          prototypeItem: ListTile(
            title: Text("${items.first.name}"),
          ),
          itemBuilder: (context, index) {
            return GestureDetector(
              onTap: () {
                Navigator.of(context).push(MaterialPageRoute(
                    builder: (context) => DetailScreen(
                        name: items[index].name!,
                        height: items[index].height!)));
              },
            );
          },
        ),
      ),
    );
  }
}

class DetailScreen extends StatelessWidget {
  final String name;
  final int height;

  const DetailScreen({super.key, required this.name, required this.height});
  @override
  Widget build(BuildContext context) {
    return Text("${name} ${height}");
  }
}




comments powered by Disqus
NEW ENTRIES
S.No Name Entry Time/Date
5754 Child 12-Aug-2023 06:45:08 AM
5753 SexyGirl 11-Aug-2023 09:07:17 AM
5752 11-Aug-2023 07:27:51 AM
5751 08-Aug-2023 07:02:27 PM
5750 Test 1 03-Aug-2023 01:08:58 PM
5749 CHILD HOT 03-Aug-2023 08:06:54 AM
5748 31-Jul-2023 05:20:29 PM
5747 . 30-Jul-2023 12:29:44 PM
5746 26-Jul-2023 10:34:23 PM
5745 VIDEO HOT 25-Jul-2023 12:26:38 PM
5744 Cute Sexy 22-Jul-2023 08:18:25 AM
5743 KIDs Sexy 17-Jul-2023 10:18:41 AM
5742 dfa 11-Jul-2023 09:08:36 AM
5741 HOT CHILD 11-Jul-2023 08:53:45 AM
5740 jj assigment 11-Jul-2023 08:43:20 AM
5739 07-Jul-2023 08:20:42 PM
5738 Kid Sexy 26-Jun-2023 09:33:43 AM
5737 mmmmm 24-Jun-2023 07:31:13 PM
5736 ....... 24-Jun-2023 07:17:01 PM
5735 Child Sexy 22-Jun-2023 10:15:56 AM
5734 Mm 20-Jun-2023 09:15:38 PM
5733 Kkk 20-Jun-2023 09:13:08 PM
5732 Ko 20-Jun-2023 08:44:44 PM
5731 bhatti 420 20-Jun-2023 10:53:59 AM
5730 Abc 20-Jun-2023 08:57:46 AM
5729 Lab 20-Jun-2023 08:53:25 AM
5728 ..... 20-Jun-2023 08:38:08 AM
5727 Best S.E.X.Y 17-Jun-2023 07:31:25 AM
5726 Aab 15-Jun-2023 09:29:28 PM
5725 a 13-Jun-2023 10:33:05 PM

[First] [Prev] 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 [Next] [Last]
 
web counter
web counter


To report any error messages or bugs, or other issues, please send email at: info@pakproject.com