pluto_grid icon indicating copy to clipboard operation
pluto_grid copied to clipboard

The sample application indicates errors

Open stephane3434 opened this issue 6 years ago • 6 comments

Good widget !!!!

PLUTO version 1.15, the code indicates 6 errors

my flutter environment [√] Flutter (Channel master, 1.22.0-10.0.pre.449, on Microsoft Windows [version 10.0.19041.508], locale fr-FR) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Professional 2019 16.7.5) [√] Android Studio (version 4.0) [√] Connected device (3 available)

stephane3434 avatar Oct 01 '20 14:10 stephane3434

What is the error, can I see it?

bosskmk avatar Oct 01 '20 14:10 bosskmk

image

image

image

stephane3434 avatar Oct 01 '20 14:10 stephane3434

Have you ever tried flutter clean or invalidate caches in the IDE?

bosskmk avatar Oct 01 '20 14:10 bosskmk

now i have the same error

  • flutter create .
  • flutter run

Syncing files to device Chrome...
lib/screen/home_screen.dart:44:24: Error: The argument type 'List' can't be assigned to the parameter type 'Widget'.

  • 'List' is from 'dart:core'.
  • 'Container' is from 'package:flutter/src/widgets/container.dart' ('/C:/Software/flutter/packages/flutter/lib/src/widgets/container.dart').
  • 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('/C:/Software/flutter/packages/flutter/lib/src/widgets/framework.dart'). child: [ ^ Failed to compile application.

stephane3434 avatar Oct 01 '20 16:10 stephane3434

Your HomeScreen file is wrong. Child of line 44 can have one widget.


line 44
child: [
  Container(

>>

This is correct.
child: Container

bosskmk avatar Oct 01 '20 18:10 bosskmk

thank you,

but it's not my file it's the one in the example.

stephane3434 avatar Oct 01 '20 18:10 stephane3434