garis biru bergelombang

Beranda › Forums › Belajar Flutter Mobile Apps Tingkat Pemula › garis biru bergelombang

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49515
    [email protected]
    Participant

      return MaterialApp(
      home: Scaffold(
      appBar: AppBar(
      title: Text(‘Aplikasi Kuis’),
      ),

      pada codingan TText(‘Aplikasi Kuis’), dia ada tanda garis biru di bawahnya, katanya Prefer const with constant constructors.dartprefer_const_constructors
      buat risih, kenapa tu min

      #49869
      Anonymous

        Oke, karna text itu tidak akan pernah berubah sintaks nya, jadi bisa juga diberikan
        const Text('Aplikasi kuis') ini hanya untuk lebih optimize aja, namun tidak wajib dan tidak apa apa

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.
      Shopping cart0
      There are no products in the cart!
      Continue shopping