-
Notifications
You must be signed in to change notification settings - Fork 904
Fox #983
Copy link
Copy link
Open
Description
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@OverRide
Widget build(BuildContext context) {
return MaterialApp(
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
final List foods = ["بيتزا", "برجر", "كشري"];
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("تطبيق طلبات")),
body: ListView.builder(
itemCount: foods.length,
itemBuilder: (context, index) {
return ListTile(
title: Text(foods[index]),
trailing: ElevatedButton(
child: Text("اطلب"),
onPressed: () {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text("تم الطلب")),
);
},
),
);
},
),
);
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels