import 'package:flutter/material.dart';
import 'package:untitled/Constants.dart';
class detailpage extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: appBackgroundGreyColor,
body: _detailpage(),
);
}
}
class _detailpage extends StatelessWidget{
Widget build(BuildContext context) {
return Center(
child: RaisedButton(
child: Text("Return"),
onPressed: () {
final snackBar = new SnackBar(content: new Text('顯示 SnackBar 訊息'));
Scaffold.of(context).showSnackBar(snackBar);
},
),
);
}
}
沒有留言:
張貼留言