- introPage.dart: Convert fireItems to proper static function closure - mainDrawer.dart: Convert unreadCount int to String for Text widget
41 lines
1.2 KiB
Dart
41 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 {
|
|
const Sandbox({super.key});
|
|
|
|
static const String routeName = '/sandbox';
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
//showDialog(context: context, child: builder(context));
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: TextField(
|
|
autofocus: true,
|
|
controller: TextEditingController(text: 'kk'),
|
|
onSubmitted: (String todoText) {},
|
|
)),
|
|
body: ElevatedButton(
|
|
child: const Text('Press'),
|
|
onPressed: () {
|
|
showDialog(
|
|
context: context,
|
|
builder: (BuildContext context) {
|
|
return const SimpleDialog(
|
|
title: Text('title'),
|
|
children: <Widget>[
|
|
Padding(
|
|
padding: EdgeInsets.only(left: 16.0),
|
|
child: Text('hhh'),
|
|
),
|
|
]);
|
|
});
|
|
}));
|
|
}
|
|
}
|