Untitled

Untitled

import 'dart:ui';

import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  static const String _title = 'Flutter Stateful Clicker Counter';
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      theme: ThemeData(
        primarySwatch: Colors.orange,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  List<String> list_content = [
    "Junior",
    "Goku",
    "Vegeta",
    "Chichi",
    "Krillin",
    "Bulma",
    "Genio",
    "Freezer",
    "Cell"
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("H-farm 23"),
      ),
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Container(
            height: 200.0,
            width: MediaQuery.of(context).size.width,
            decoration: BoxDecoration(
              gradient: LinearGradient(colors: [Colors.red, Colors.black]),
              image: DecorationImage(
                image: NetworkImage(
                  "https://assets.stickpng.com/images/584e834a6a5ae41a83ddee37.png",
                ),
                fit: BoxFit.contain,
              ),
              shape: BoxShape.circle,
            ),
          ),
          Text(
            "Vegeta sucks!",
            style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
          ),
          Divider(
            color: Colors.red[800],
            thickness: 2,
          ),
          Expanded(
            child: ListView.builder(
              //scrollDirection: Axis.vertical,
              itemCount: list_content.length,
              itemBuilder: (context, index) => ListTile(
                leading: Icon(Icons.person_2_rounded, color: Colors.black),
                title: Text(list_content[index]),
              ),
            ),
          )
        ],
      ),
      bottomNavigationBar: BottomNavigationBar(
        items: [
          BottomNavigationBarItem(
              icon: Icon(Icons.call, color: Colors.orange), label: "call"),
          BottomNavigationBarItem(
              icon: Icon(Icons.message, color: Colors.amber), label: "message"),
          BottomNavigationBarItem(
              icon: Icon(Icons.heart_broken, color: Colors.red), label: "love")
        ],
      ),
    );
  }
}