mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-11-08 20:50:04 +00:00
added: using_snackbar
This commit is contained in:
19
using_snackbar/lib/main.dart
Normal file
19
using_snackbar/lib/main.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void main() {
|
||||
runApp(new MaterialApp(home: new ContactPage()));
|
||||
}
|
||||
|
||||
class ContactPage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Scaffold(
|
||||
appBar: new AppBar(
|
||||
title: new Text("Using SnackBar"),
|
||||
),
|
||||
body: new Center(
|
||||
child: new Text("Hello World!"),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user