I Am Rick

I Am Rick

A ‘The Walking Dead’ spinoff of the ‘I Am Rich’ app, made with Flutter.

import 'package:flutter/material.dart';

void main() {
runApp(
MaterialApp(
home: Scaffold(
backgroundColor: Colors.lightGreen[200],
appBar: AppBar(
title: Text("I Am Rick"),
backgroundColor: Colors.red[800],
),
body: Center(
child: Image(
image: AssetImage('images/rick_gun.jpg'),
),
),
),
),
);
}

Code Breakdown

Image(image: NetworkImage('image_url'))

Image(image: AssetImage('images/rick_gun.jpg'))

# The following section is specific to Flutter.
flutter:

# To add assets to your application, add an assets section, like this:
assets:
- images/rick_gun.jpg

assets:
- images/

Now you can have Rick on your Home Screen!And with the circular icon on Android!

Alternate Text Gọi ngay