Skip to content

Instantly share code, notes, and snippets.

@nerdpepe
Created July 1, 2021 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nerdpepe/4fdf9324d33cbacccf93657d38585937 to your computer and use it in GitHub Desktop.
Save nerdpepe/4fdf9324d33cbacccf93657d38585937 to your computer and use it in GitHub Desktop.
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