Created
February 12, 2021 13:06
-
-
Save safademirel07/43338d41f8f2e3e29b8e7599d4207396 to your computer and use it in GitHub Desktop.
firebase-dynamic-linking-tutorial-2
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'; | |
class DynamicPage extends StatelessWidget { | |
final Color backgroundColor; | |
const DynamicPage({Key key, @required this.backgroundColor}) | |
: super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: backgroundColor, | |
appBar: AppBar( | |
backgroundColor: backgroundColor, | |
title: Text( | |
"Başlık", | |
style: Theme.of(context) | |
.textTheme | |
.headline6 | |
.copyWith(color: Colors.white), | |
), | |
), | |
body: Center( | |
child: Text( | |
"${backgroundColor.toString()}", | |
style: TextStyle(color: Colors.white), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment