Skip to content

Commit

Permalink
Added documentation to main.dart
Browse files Browse the repository at this point in the history
Added simple comments to improve internal documentation of the app
  • Loading branch information
martin-headspace committed Feb 18, 2020
1 parent 490ef90 commit ee9f2ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 4 additions & 6 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions eight_queens/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class _MyHomePageState extends State<MyHomePage> {
super.dispose();
}

///
/// Creates a simple Dialog to show a message
/// Receives a [String] title and a [String] message to display a [AlertDialog]
///
void _showDialogBuilder(String title, String message) {
showDialog(context: context,builder: (BuildContext context){
return AlertDialog(
Expand Down Expand Up @@ -79,10 +83,11 @@ class _MyHomePageState extends State<MyHomePage> {
super.initState();
}

/**
* Retrieve the board number and pass it to the eight queens controller
* TODO: Create the Responsible class in Dart
*/
///
/// This method retrieves the [boardController.text] and checks if [isNumeric] and [boardController.text.isEmpty].
/// Then, it shows a [ProgressDialog] element while [QueenResolver] is executed.
/// Once a [count] is retrieved, we [Navigator.push] to [ResultsPage]
///
void _startProcessing() async {

if(boardController.text.isEmpty){
Expand Down

0 comments on commit ee9f2ae

Please sign in to comment.