|
@@ -2,11 +2,22 @@ import 'package:flutter/material.dart';
|
|
import 'package:namer_app/footer.dart';
|
|
import 'package:namer_app/footer.dart';
|
|
import 'package:namer_app/header.dart';
|
|
import 'package:namer_app/header.dart';
|
|
|
|
|
|
|
|
+import '../service/addbug_serv.dart';
|
|
|
|
+
|
|
class AddBugPage extends StatelessWidget {
|
|
class AddBugPage extends StatelessWidget {
|
|
const AddBugPage({super.key});
|
|
const AddBugPage({super.key});
|
|
|
|
|
|
@override
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Widget build(BuildContext context) {
|
|
|
|
+ var bugdesc = TextEditingController();
|
|
|
|
+ var bugqc = TextEditingController();
|
|
|
|
+ var bugdev = TextEditingController();
|
|
|
|
+ var bugplatform = TextEditingController();
|
|
|
|
+ var buggoodday = TextEditingController();
|
|
|
|
+ var bugimage = TextEditingController();
|
|
|
|
+ var buglevel = TextEditingController();
|
|
|
|
+ var bugstatus = TextEditingController();
|
|
|
|
+ var bugdevStatus = TextEditingController();
|
|
return Scaffold(
|
|
return Scaffold(
|
|
appBar: CustomAppbar(),
|
|
appBar: CustomAppbar(),
|
|
backgroundColor: Colors.white,
|
|
backgroundColor: Colors.white,
|
|
@@ -48,6 +59,7 @@ class AddBugPage extends StatelessWidget {
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
cursorColor: Colors.black,
|
|
cursorColor: Colors.black,
|
|
style: TextStyle(color: Colors.black),
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
+ controller: bugdesc,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -72,6 +84,7 @@ class AddBugPage extends StatelessWidget {
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
cursorColor: Colors.black,
|
|
cursorColor: Colors.black,
|
|
style: TextStyle(color: Colors.black),
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
+ controller: bugqc,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -96,6 +109,7 @@ class AddBugPage extends StatelessWidget {
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
cursorColor: Colors.black,
|
|
cursorColor: Colors.black,
|
|
style: TextStyle(color: Colors.black),
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
+ controller: bugdev,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -120,6 +134,7 @@ class AddBugPage extends StatelessWidget {
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
cursorColor: Colors.black,
|
|
cursorColor: Colors.black,
|
|
style: TextStyle(color: Colors.black),
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
+ controller: bugplatform,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -144,6 +159,7 @@ class AddBugPage extends StatelessWidget {
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
cursorColor: Colors.black,
|
|
cursorColor: Colors.black,
|
|
style: TextStyle(color: Colors.black),
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
+ controller: buggoodday,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -168,6 +184,7 @@ class AddBugPage extends StatelessWidget {
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
cursorColor: Colors.black,
|
|
cursorColor: Colors.black,
|
|
style: TextStyle(color: Colors.black),
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
+ controller: bugimage,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -192,6 +209,7 @@ class AddBugPage extends StatelessWidget {
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
cursorColor: Colors.black,
|
|
cursorColor: Colors.black,
|
|
style: TextStyle(color: Colors.black),
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
+ controller: buglevel,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -216,6 +234,7 @@ class AddBugPage extends StatelessWidget {
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
cursorColor: Colors.black,
|
|
cursorColor: Colors.black,
|
|
style: TextStyle(color: Colors.black),
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
+ controller: bugstatus,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -240,6 +259,7 @@ class AddBugPage extends StatelessWidget {
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
fillColor: Colors.white.withOpacity(0.25)),
|
|
cursorColor: Colors.black,
|
|
cursorColor: Colors.black,
|
|
style: TextStyle(color: Colors.black),
|
|
style: TextStyle(color: Colors.black),
|
|
|
|
+ controller: bugdevStatus,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -249,7 +269,7 @@ class AddBugPage extends StatelessWidget {
|
|
width: 396,
|
|
width: 396,
|
|
height: 61,
|
|
height: 61,
|
|
child: ElevatedButton(
|
|
child: ElevatedButton(
|
|
- onPressed: null, //todo save edit
|
|
|
|
|
|
+ onPressed: () => addbug(context, bugdesc.text, bugqc.text, bugdev.text, bugplatform.text, buggoodday.text, bugimage.text, buglevel.text, bugstatus.text, bugdevStatus.text), //todo save edit
|
|
style: ElevatedButton.styleFrom(
|
|
style: ElevatedButton.styleFrom(
|
|
backgroundColor: Colors.black, //todo putih lage
|
|
backgroundColor: Colors.black, //todo putih lage
|
|
side: BorderSide(color: Colors.white),
|
|
side: BorderSide(color: Colors.white),
|