Skip to content

Fox #983

@foxoxf87-netizen

Description

@foxoxf87-netizen

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("تم الطلب")),
);
},
),
);
},
),
);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions