-
-
Save nerdpepe/4fdf9324d33cbacccf93657d38585937 to your computer and use it in GitHub Desktop.
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
import 'package:flutter/material.dart'; | |
import './myservice.dart'; | |
class Service extends StatelessWidget { | |
final MyService myService; | |
Service(this.myService); | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
color: Colors.yellow, | |
width: double.infinity, | |
child: Text( | |
'${myService.myVariable}', | |
textAlign: TextAlign.center, | |
style: TextStyle( | |
fontSize: 25, | |
fontWeight: FontWeight.bold, | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment