-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete unused files and update code structure
- Loading branch information
1 parent
9e9bd6d
commit e0003a1
Showing
16 changed files
with
253 additions
and
415 deletions.
There are no files selected for viewing
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,25 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class AppColors { | ||
// dark theme colors | ||
static const Color primaryDark = Colors.green; | ||
static Color primaryDark500 = Colors.green.shade500; | ||
static Color primaryDark800 = Colors.green.shade800; | ||
static const Color backgroundDark = Colors.black; | ||
static Color scaffoldBackgroundDark = Colors.grey.shade900; | ||
static const Color cardDark = Colors.black12; | ||
static const Color shadowDark = Colors.black; | ||
static const Color drawerBackgroundDark = Colors.black87; | ||
static const Color dialogBackgroundDark = Colors.grey; | ||
|
||
// light colors | ||
static const Color primaryLight = Colors.green; | ||
static Color primaryLight400 = Colors.green.shade400; | ||
static Color primaryLight50 = Colors.green.shade50; | ||
static const Color backgroundLight = Colors.white; | ||
static const Color scaffoldBackgroundLight = Colors.white; | ||
static Color cardLight = Colors.grey.shade200; | ||
static Color shadowLight = Colors.grey.shade200; | ||
static Color drawerBackgroundLight = Colors.green.shade50; | ||
static Color dialogBackgroundLight = Colors.green.shade50; | ||
} |
Empty file.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
import 'package:Organiser/config/colors.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
ThemeData darkMode = ThemeData( | ||
primaryColor: Colors.green, | ||
primaryColor: AppColors.primaryDark, | ||
brightness: Brightness.dark, | ||
colorScheme: ColorScheme.dark( | ||
background: Colors.black, | ||
primary: Colors.green.shade500, | ||
secondary: Colors.green.shade800, | ||
background: AppColors.backgroundDark, | ||
primary: AppColors.primaryDark500, | ||
secondary: AppColors.primaryDark800, | ||
), | ||
scaffoldBackgroundColor: Colors.grey.shade900, | ||
cardTheme: CardTheme(color: Colors.black12), | ||
shadowColor: Colors.black, | ||
drawerTheme: DrawerThemeData(backgroundColor: Colors.black87), | ||
scaffoldBackgroundColor: AppColors.scaffoldBackgroundDark, | ||
cardTheme: CardTheme(color: AppColors.cardDark), | ||
shadowColor: AppColors.shadowDark, | ||
drawerTheme: DrawerThemeData(backgroundColor: AppColors.drawerBackgroundDark), | ||
dialogTheme: DialogTheme( | ||
backgroundColor: Colors.grey.shade500.withOpacity(0.9), | ||
backgroundColor: AppColors.dialogBackgroundDark.withOpacity(0.9), | ||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(50)), | ||
), | ||
); |
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import 'package:Organiser/config/colors.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
ThemeData lightMode = ThemeData( | ||
primaryColor: Colors.green, | ||
cardTheme: CardTheme(color: Colors.grey.shade200, elevation: 1), | ||
primaryColor: AppColors.primaryLight, | ||
cardTheme: CardTheme(color: AppColors.cardLight, elevation: 1), | ||
drawerTheme: DrawerThemeData( | ||
backgroundColor: Colors.green.shade50, | ||
backgroundColor: AppColors.drawerBackgroundLight, | ||
), | ||
scaffoldBackgroundColor: Colors.white, | ||
scaffoldBackgroundColor: AppColors.scaffoldBackgroundLight, | ||
brightness: Brightness.light, | ||
colorScheme: ColorScheme.light( | ||
background: Colors.grey.shade400, | ||
primary: Colors.green, | ||
secondary: Colors.green.shade50, | ||
background: AppColors.backgroundLight, | ||
primary: AppColors.primaryLight400, | ||
secondary: AppColors.primaryLight50, | ||
), | ||
dialogTheme: DialogTheme( | ||
backgroundColor: Colors.green.shade50.withOpacity(0.95), | ||
backgroundColor: AppColors.dialogBackgroundLight.withOpacity(0.95), | ||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(50)), | ||
), | ||
shadowColor: Colors.grey.shade200, | ||
shadowColor: AppColors.shadowLight, | ||
); |
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
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,52 @@ | ||
import 'package:flutter/material.dart'; | ||
class CreateTaskPage extends StatefulWidget { | ||
@override | ||
_CreateTaskPageState createState() => _CreateTaskPageState(); | ||
} | ||
|
||
class _CreateTaskPageState extends State<CreateTaskPage> { | ||
final TextEditingController _titleController = TextEditingController(); | ||
final TextEditingController _descriptionController = TextEditingController(); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Padding( | ||
padding: const EdgeInsets.all(16.0), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.stretch, | ||
children: [ | ||
TextField( | ||
controller: _titleController, | ||
decoration: InputDecoration( | ||
labelText: 'Title', | ||
), | ||
), | ||
SizedBox(height: 16.0), | ||
TextField( | ||
controller: _descriptionController, | ||
decoration: InputDecoration( | ||
labelText: 'Description', | ||
), | ||
maxLines: 3, | ||
), | ||
SizedBox(height: 16.0), | ||
ElevatedButton( | ||
onPressed: () { | ||
_saveTask(); | ||
Navigator.pop(context); | ||
}, | ||
child: Text('Save'), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
|
||
void _saveTask() { | ||
final String title = _titleController.text.trim(); | ||
final String description = _descriptionController.text.trim(); | ||
|
||
// Implement your logic to save the task here | ||
print('Title: $title, Description: $description'); | ||
} | ||
} |
Oops, something went wrong.