initial commit
This commit is contained in:
31
lib/widgets/editorCard.dart
Normal file
31
lib/widgets/editorCard.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
import "package:flutter/material.dart";
|
||||
import "package:prod/models/editor.dart";
|
||||
import "package:prod/models/globalModel.dart";
|
||||
import "package:prod/models/project.dart";
|
||||
import "package:provider/provider.dart";
|
||||
import "package:yaru/yaru.dart";
|
||||
import "package:process_run/shell.dart";
|
||||
|
||||
class EditorCard extends StatelessWidget {
|
||||
const EditorCard(this.id, {super.key});
|
||||
final int id;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
GlobalModel gm = Provider.of<GlobalModel>(context);
|
||||
final Editor edt = gm.nthEdt(id);
|
||||
return YaruBanner(
|
||||
onTap: () {},
|
||||
child: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: .start,
|
||||
crossAxisAlignment: .start,
|
||||
children: [
|
||||
Text("${edt.name}", style: TextStyle(fontSize: 30)),
|
||||
Text("${edt.commandTemplate}"),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user