cover

Comments in Flutter #

In the last lesson we wrote the hello world program and it was working. In this lecture we will see how we can write the comments in Flutter.

Flutter uses Dart language. So, everything applies on Dart will be applied to the comment.

There are two ways of writing comment in Flutter.

  • Single Line
  • Multiline Line
main.dart
// This package is related to flutter
import 'package:flutter/material.dart';

/*
 main function is required function in dart as well as in flutter. 
 main function is entry point for Dart
 C and C++ also have the similar way fo working
*/
void main(){
    runApp(
      Text('Hello, World'),
    );
}
comments powered by Disqus