0

Tried Everything on my End

> import 'package:alnoor/poTesting/poClass.dart';
>     import 'package:alnoor/poTesting/poTestingForm.dart';
>     import 'package:flutter/material.dart';
>     
>     class PoTesting extends StatefulWidget {
>       PoTesting({Key key}) : super(key: key);
>     
>       _PoTestingState createState() => _PoTestingState();
>     }
>     
>     class _PoTestingState extends State<PoTesting> {
>       List itemList = [];
>       @override
>       Widget build(BuildContext context) {
>         var _user = User();
>     
>         return Scaffold(
>             appBar: AppBar(
>               title: Text("data"),
>             ),
>             floatingActionButton: FloatingActionButton(
>               child: Icon(Icons.add),
>               onPressed: () {
>                 setState(() {
>                   itemList.add("value");
>                 });
>               },
>             ),
>             body: Container(
>               height: 500,
>               child: new ListView.builder(
>                 addRepaintBoundaries: true,
>                 shrinkWrap: true,
>                 itemCount: 25,
>                 itemBuilder: (context, i) {
>                   return UserForm(
>                     user: _user,
>                   );
>                 },
>               ),
>             ));
>       }
>     }

1 Answer 1

0

Issue Resolved refernce github Issue occurs due to creating new instances of state on creating a new widget every time it just renders first three widgets state dont know why so i stopped validating state each time

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.