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
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
routes: { | |
'home': (_) => const HomeScreen(), | |
'game_screen': (_) => const GameScreen(), | |
'diary_screen': (_) => const DiaryScreen() | |
}, | |
initialRoute: 'home'); |
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
class FormScreen extends StatelessWidget { | |
const FormScreen({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
final double widthScreem = MediaQuery.of(context).size.width; | |
final double heightScreem = MediaQuery.of(context).size.height; | |
return Scaffold( | |
body: Center( | |
child: SizedBox( |
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
class ValidatorButton extends StatelessWidget { | |
const ValidatorButton({super.key, required this.navigator}); | |
final Widget navigator; | |
@override | |
Widget build(BuildContext context) { | |
Size size = MediaQuery.of(context).size; | |
return MaterialButton( |
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
class HomeButton extends StatelessWidget { | |
const HomeButton({Key? key, required this.navigator, required this.icons}) | |
: super(key: key); | |
final Widget navigator; | |
final IconData icons; | |
//Call: | |
//Icon(Icons.sort_by_alpha), | |
//Icons.filter_list |
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
class TextSubtitle extends StatelessWidget { | |
const TextSubtitle({Key? key, required this.text}) : super(key: key); | |
final String text; | |
@override | |
Widget build(BuildContext context) { | |
return Text( | |
text, | |
style: const TextStyle( |
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
class ActiveIndicator extends StatelessWidget { | |
const ActiveIndicator({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
int value = 202; | |
return Center( | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: [ |
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
class CustomTextStyle { | |
static const TextStyle percentSubtitle = TextStyle( | |
fontWeight: FontWeight.w400, | |
fontSize: 13, | |
color: Color(0xFFFFFFFF), | |
fontFamily: 'Poppins'); | |
static const TextStyle percentTitle = TextStyle( | |
fontSize: 25, | |
color: Colors.white, | |
fontWeight: FontWeight.w800, |
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
class PresenteeismIndicator extends StatefulWidget { | |
const PresenteeismIndicator({super.key}); | |
@override | |
State<PresenteeismIndicator> createState() => _PresenteeismIndicatorState(); | |
} | |
class _PresenteeismIndicatorState extends State<PresenteeismIndicator> { | |
@override | |
Widget build(BuildContext context) { |
OlderNewer