Skip to content

[console error] Unexpected javascript error from running app #3497

@hanooms11-ux

Description

@hanooms11-ux

Relevant console output

Script error.

When did the error happen?

hh

Your Dart code

import 'package:flutter/material.dart';
main() { runApp( MyApp() ); }
class MyApp extends StatelessWidget{
  const MyApp({super.key});
  
  @override
  Widget build(BuildContext context){
     return MaterialApp(
       home: Scaffold(
         appBar: AppBar(title: const Text('Column Example')),
         body: _buildColumnWidget(),
       ),
     );
  }

  Widget _buildColumnWidget() {
     return Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget> [
          Container(
             height: 200,
             width: 50,
             color: Colors.red,
             child: const Center(child: Text("50"),),
          ),
          Container(
             height: 200,
             width: 100,
             color: Colors.green,
             child: const Center(child: Text("100"),), 
          ),
          Container(
             height: 200,
             width: 200,
             color: Colors.orange,
             child: const Center(child: Text("200"),), 
          ),
          Container(
             height: 200,
             width: 500,
             color: Colors.blue,
             child: const Center(child: Text("1000"),), 
          ),
          ]
     );
  }
}

What OS did this error occur on?

No response

What browser(s) did this error occur on?

No response

Do you have any additional information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-executiontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions