grafica pagina TodayView.dart
This commit is contained in:
@@ -1,55 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class EditReminder extends StatelessWidget{
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return FloatingActionButton.small(
|
||||
onPressed: () {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
showDragHandle: true,
|
||||
builder: (BuildContext context) {
|
||||
return Container(
|
||||
// Contenuto del BottomSheet modale
|
||||
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
ListTile(
|
||||
title: const TextField(
|
||||
decoration: InputDecoration(
|
||||
hintText: "Title",
|
||||
border: OutlineInputBorder(),
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
// Azione da eseguire quando viene selezionato "Share"
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
title: const TextField(
|
||||
decoration: InputDecoration(
|
||||
hintText: "Title",
|
||||
border: OutlineInputBorder(),
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
// Azione da eseguire quando viene selezionato "Share"
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
//spacer
|
||||
Container(
|
||||
height: 600
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
child: Icon(Icons.edit),
|
||||
);
|
||||
}
|
||||
}
|
||||
17
lib/Components/EditReminderButton.dart
Normal file
17
lib/Components/EditReminderButton.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../pages/EditReminder.dart';
|
||||
|
||||
class EditReminderButton extends StatelessWidget{
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return FilledButton(
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => EditReminder()),
|
||||
);
|
||||
},
|
||||
child: Icon(Icons.list),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../Components/EditReminder.dart';
|
||||
import '../Components/EditReminderButton.dart';
|
||||
|
||||
class Reminder extends StatefulWidget {
|
||||
const Reminder({super.key});
|
||||
@@ -27,7 +27,7 @@ class _ReminderState extends State<Reminder> {
|
||||
),
|
||||
title: Text("Reminder"),
|
||||
subtitle: Text(DateTime.now().toString()),
|
||||
trailing: EditReminder(),
|
||||
trailing: EditReminderButton(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user