Skip to content

Instantly share code, notes, and snippets.

View mihalycsaba's full-sized avatar
🇵🇸
Free Palestine

Csaba mihalycsaba

🇵🇸
Free Palestine
View GitHub Profile
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
static const String _title = 'Flutter Code Sample';
@override
@mihalycsaba
mihalycsaba / main.dart
Created July 20, 2025 11:18
shopping list with callbacks
import 'package:flutter/material.dart';
typedef CartChangedCallback = void Function(Product product);
typedef CartDeleteCallback = void Function(Product product);
void main() {
runApp(const MaterialApp(
title: 'Shopping App',
home: ShoppingList(),
));