Skip to content

Instantly share code, notes, and snippets.

@suragch
Created February 15, 2022 02:54
Show Gist options
  • Save suragch/23835ddeb58e5732494e0a268109e863 to your computer and use it in GitHub Desktop.
Save suragch/23835ddeb58e5732494e0a268109e863 to your computer and use it in GitHub Desktop.
Flutter computer and text
import 'package:flutter/material.dart';
void main() {
runApp(MyAmazingApp());
}
class MyAmazingApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.network(
'https://picsum.photos/250?image=9',
width: 100,
),
Text('my computer'),
]
)
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment