Last active
August 30, 2019 18:39
-
-
Save manofi21/c51148b48248606fd5f46d4b8baf4cfc to your computer and use it in GitHub Desktop.
how to show image in flutter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
padding: EdgeInsets.only(left: 10.0), | |
child: Image.asset('assets/nama_gambar.format_gambar', width:70, height: 30), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment