Skip to content

Commit

Permalink
added comments to Example App
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarski committed Apr 27, 2023
1 parent c1e1a85 commit 4a18686
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/lib/app.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import 'package:flutter/material.dart';
import 'package:languagetool_textfield/languagetool_textfield.dart';

/// Example App main page
class App extends StatefulWidget {
/// Example app constructor
const App({super.key});

@override
State<App> createState() => _AppState();
}

class _AppState extends State<App> {
/// Initialize LanguageTool
static final LanguageTool _languageTool = LanguageTool();

/// Initialize DebounceLangToolService
final DebounceLangToolService _debouncedLangService;

/// Set DebounceLangToolService
_AppState()
: _debouncedLangService = DebounceLangToolService(
LangToolService(_languageTool),
Expand Down

0 comments on commit 4a18686

Please sign in to comment.