forked from FusionIIIT/Fusion-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54f25e3
commit 93953a8
Showing
9 changed files
with
2,276 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,290 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'dart:ui'; | ||
|
||
class achievementsMenu extends StatelessWidget { | ||
const achievementsMenu({ | ||
Key key, | ||
}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
//color: Colors.grey, | ||
padding: EdgeInsets.all((5.0)), | ||
margin: EdgeInsets.all(10.0), | ||
child: Column( | ||
children: [ | ||
Container( | ||
// Achievements Container | ||
decoration: BoxDecoration( | ||
border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.circular(5.0), | ||
), | ||
child: Column( | ||
children: [ | ||
Container( | ||
//Label + Edit Button | ||
decoration: BoxDecoration( | ||
border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.only( | ||
topLeft: Radius.circular(5.0), | ||
topRight: Radius.circular(5.0)), | ||
color: Colors.grey), | ||
padding: EdgeInsets.all(5.0), | ||
child: Row( | ||
children: [ | ||
Expanded(child: Text('Add a new Achievement')), | ||
ElevatedButton( | ||
child: Text('Add'), | ||
onPressed: () => { | ||
//Edit Function | ||
}, | ||
style: ElevatedButton.styleFrom( | ||
primary: Colors.red)), | ||
], | ||
), | ||
), | ||
Container( | ||
color: Colors.white, | ||
padding: EdgeInsets.all(7.0), | ||
child: Column( | ||
children: [ | ||
Container( | ||
// Achievement Name Container | ||
decoration: BoxDecoration( | ||
border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.circular(5.0), | ||
), | ||
child: Column( | ||
children: [ | ||
Container( | ||
//Label + Edit Button | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.only( | ||
topLeft: Radius.circular(5.0), | ||
topRight: Radius.circular(5.0)), | ||
color: Colors.grey), | ||
padding: EdgeInsets.all(5.0), | ||
child: Row( | ||
children: [ | ||
Expanded(child: Text('Achievement Name')), | ||
], | ||
), | ||
), | ||
Container( | ||
// Body of Menu | ||
padding: EdgeInsets.all(7.0), | ||
color: Colors.white24, | ||
child: Container( | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
color: Colors.grey.shade300), | ||
padding: EdgeInsets.fromLTRB( | ||
10.0, 1.0, 10.0, 1.0), | ||
child: TextFormField( | ||
enabled: true, | ||
initialValue: '', | ||
decoration: InputDecoration( | ||
border: InputBorder.none), | ||
), | ||
), | ||
) | ||
], | ||
), | ||
), | ||
SizedBox(height: 5), | ||
Container( | ||
// Type Container | ||
decoration: BoxDecoration( | ||
border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.circular(5.0), | ||
), | ||
child: Column( | ||
children: [ | ||
Container( | ||
//Label + Edit Button | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.only( | ||
topLeft: Radius.circular(5.0), | ||
topRight: Radius.circular(5.0)), | ||
color: Colors.grey), | ||
padding: EdgeInsets.all(5.0), | ||
child: Row( | ||
children: [ | ||
Expanded(child: Text('Type')), | ||
], | ||
), | ||
), | ||
Container( | ||
// Body of Menu | ||
padding: EdgeInsets.all(7.0), | ||
color: Colors.white24, | ||
child: Container( | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
color: Colors.grey.shade300), | ||
padding: EdgeInsets.fromLTRB( | ||
10.0, 1.0, 10.0, 1.0), | ||
child: TextFormField( | ||
enabled: true, | ||
initialValue: '', | ||
decoration: InputDecoration( | ||
border: InputBorder.none), | ||
), | ||
), | ||
) | ||
], | ||
), | ||
), | ||
SizedBox(height: 5), | ||
Container( | ||
// Date Container | ||
decoration: BoxDecoration( | ||
border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.circular(5.0), | ||
), | ||
child: Column( | ||
children: [ | ||
Container( | ||
//Label + Edit Button | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.only( | ||
topLeft: Radius.circular(5.0), | ||
topRight: Radius.circular(5.0)), | ||
color: Colors.grey), | ||
padding: EdgeInsets.all(5.0), | ||
child: Row( | ||
children: [ | ||
Expanded( | ||
child: Text('Date')), | ||
], | ||
), | ||
), | ||
Container( | ||
// Body of Menu | ||
padding: EdgeInsets.all(7.0), | ||
color: Colors.white24, | ||
child: Container( | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
color: Colors.grey.shade300), | ||
padding: EdgeInsets.fromLTRB( | ||
10.0, 1.0, 10.0, 1.0), | ||
child: InputDatePickerFormField( | ||
//enabled: true, | ||
initialDate: DateTime.utc(2000,01,01), | ||
firstDate: DateTime.utc(2000,01,01), | ||
lastDate: DateTime.now(), | ||
), | ||
), | ||
) | ||
], | ||
), | ||
), | ||
SizedBox(height: 5), | ||
Container( | ||
// Issuer Container | ||
decoration: BoxDecoration( | ||
border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.circular(5.0), | ||
), | ||
child: Column( | ||
children: [ | ||
Container( | ||
//Label + Edit Button | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.only( | ||
topLeft: Radius.circular(5.0), | ||
topRight: Radius.circular(5.0)), | ||
color: Colors.grey), | ||
padding: EdgeInsets.all(5.0), | ||
child: Row( | ||
children: [ | ||
Expanded(child: Text('Issuer')), | ||
], | ||
), | ||
), | ||
Container( | ||
// Body of Menu | ||
padding: EdgeInsets.all(7.0), | ||
color: Colors.white24, | ||
child: Container( | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
color: Colors.grey.shade300), | ||
padding: EdgeInsets.fromLTRB( | ||
10.0, 1.0, 10.0, 1.0), | ||
child: TextFormField( | ||
enabled: true, | ||
initialValue: '', | ||
decoration: InputDecoration( | ||
border: InputBorder.none), | ||
), | ||
), | ||
) | ||
], | ||
), | ||
), | ||
SizedBox(height: 5), | ||
Container( | ||
// Description Container | ||
decoration: BoxDecoration( | ||
border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.circular(5.0), | ||
), | ||
child: Column( | ||
children: [ | ||
Container( | ||
//Label + Edit Button | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
borderRadius: BorderRadius.only( | ||
topLeft: Radius.circular(5.0), | ||
topRight: Radius.circular(5.0)), | ||
color: Colors.grey), | ||
padding: EdgeInsets.all(5.0), | ||
child: Row( | ||
children: [ | ||
Expanded(child: Text('Description')), | ||
], | ||
), | ||
), | ||
Container( | ||
// Body of Menu | ||
padding: EdgeInsets.all(7.0), | ||
color: Colors.white24, | ||
child: Container( | ||
decoration: BoxDecoration( | ||
//border: Border.all(color: Colors.black), | ||
color: Colors.grey.shade300), | ||
padding: EdgeInsets.fromLTRB( | ||
10.0, 1.0, 10.0, 1.0), | ||
child: TextFormField( | ||
enabled: true, | ||
initialValue: '', | ||
decoration: InputDecoration( | ||
border: InputBorder.none), | ||
), | ||
), | ||
) | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
// SizedBox( | ||
// height: 7, | ||
// ), | ||
], | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.