- Complete MVP with Repository Pattern, SQLite storage - Provider + ChangeNotifier state management - Navigation 2.0 with deep link support - Habit CRUD with twoDayRule, notifications, categories - Backup/Restore via JSON - Statistics with streak tracking - Material You theme support - Biometric lock support - Desktop widget support - 27 languages i18n structure - Comprehensive test suite (87/89 passing)
30 lines
635 B
Dart
30 lines
635 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class TextContainer extends StatelessWidget {
|
|
final String label;
|
|
final TextEditingController? controller;
|
|
final String? hint;
|
|
|
|
const TextContainer({
|
|
super.key,
|
|
required this.label,
|
|
this.controller,
|
|
this.hint,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 4),
|
|
child: TextField(
|
|
controller: controller,
|
|
decoration: InputDecoration(
|
|
labelText: label,
|
|
hintText: hint,
|
|
border: const OutlineInputBorder(),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|