Skip to content

Instantly share code, notes, and snippets.

@easylive1989
Created October 4, 2023 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save easylive1989/e99937ec3b59d56281af3d4e244e6504 to your computer and use it in GitHub Desktop.
Save easylive1989/e99937ec3b59d56281af3d4e244e6504 to your computer and use it in GitHub Desktop.
2023鐵人賽_D20_1
import 'package:flutter/material.dart';
main() {
runApp(const IpMan());
}
class IpMan extends StatelessWidget {
const IpMan({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.asset("assets/ipman.jpg"),
Builder(builder: (context) {
return ElevatedButton(
onPressed: () {
showDialog(
context: context,
builder: (context) => Material(child: Image.asset("assets/master_hong.jpg")),
);
},
child: const Text("看看洪師父怎麼說"),
);
})
],
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment