-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: completed feedback screen changes
- Loading branch information
1 parent
63e1377
commit 031a77f
Showing
10 changed files
with
258 additions
and
153 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
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,59 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
import 'package:paladinsedge/providers/index.dart' as providers; | ||
|
||
class FeedbackDescription extends ConsumerWidget { | ||
const FeedbackDescription({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context, WidgetRef ref) { | ||
// Providers | ||
final feedbackProvider = ref.read(providers.feedback); | ||
|
||
return Card( | ||
elevation: 10, | ||
clipBehavior: Clip.hardEdge, | ||
shape: const RoundedRectangleBorder( | ||
borderRadius: BorderRadius.all( | ||
Radius.circular(10), | ||
), | ||
), | ||
child: Column( | ||
children: [ | ||
Container( | ||
padding: const EdgeInsets.symmetric(vertical: 10), | ||
margin: const EdgeInsets.symmetric(horizontal: 15), | ||
alignment: Alignment.centerLeft, | ||
decoration: const BoxDecoration( | ||
border: Border( | ||
bottom: BorderSide( | ||
width: 1, | ||
color: Colors.grey, | ||
), | ||
), | ||
), | ||
child: const Text( | ||
'Description', | ||
style: TextStyle( | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
), | ||
TextField( | ||
minLines: 5, | ||
maxLines: 10, | ||
decoration: const InputDecoration( | ||
contentPadding: | ||
EdgeInsets.symmetric(horizontal: 15, vertical: 10), | ||
border: InputBorder.none, | ||
hintText: 'Write your feedback here...', | ||
), | ||
style: const TextStyle(fontSize: 18), | ||
onChanged: feedbackProvider.changeDescription, | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.