todos-contra-el-fuego-mobile/lib/sandbox.dart
vjrj a7f3ab6974 Fix remaining compilation errors: null-safety, removed packages, and nullable handling
- Fix AppState: remove removed connectivity package, fix imports (latlong2), make nullable fields optional
- Fix User model: use const empty strings in const constructor instead of null
- Fix model builders: add required ObjectId parameters to YourLocation and FireNotification
- Implement Comparable instead of extending it for BasicLocation
- Fix nullable callback handling in appActions and middleware (Completer<Null>?)
- Add null checks for BuildContext in dialogs (fireAlert, homePage, etc.)
- Fix nullable scaffold state access using ?. operator (activeFires, fireNotificationList)
- Handle nullable FireNotification and YourLocation in genericMapBottom
- Fix list type casting for widgets that can be null (<Widget?> with filtering)
- Add ObjectId imports where needed for model creation
- Fix Key? nullable parameter in introPage
- Add required parameters to markdownPage and slider constructors
- Remove connectivity-related code and imports (package removed)
- Handle nullable Completer in fetchDataMiddleware

All 104 errors resolved. 0 errors, 61 warnings/info remaining.
2026-03-05 02:50:32 +01:00

40 lines
1.2 KiB
Dart

import 'package:flutter/material.dart';
/*
Useful for debug
import 'package:fluttery/framing.dart';
new RandomColorBlock( child
*/
class Sandbox extends StatelessWidget {
static const String routeName = '/sandbox';
@override
Widget build(BuildContext context) {
//showDialog(context: context, child: builder(context));
return Scaffold(
appBar: new AppBar(
title: new TextField(
autofocus: true,
controller: new TextEditingController(text: "kk"),
decoration: new InputDecoration(),
onSubmitted: (todoText) {},
)),
body: new ElevatedButton(
child: new Text('Press'),
onPressed: () {
showDialog(
context: context,
builder: (context) {
return new SimpleDialog(
title: new Text('title'),
children: <Widget>[
new Padding(
padding: const EdgeInsets.only(left: 16.0),
child: new Text('hhh'),
),
]);
});
}));
}
}