Skip to content

Instantly share code, notes, and snippets.

@safademirel07
Created February 12, 2021 13:06
Show Gist options
  • Save safademirel07/43338d41f8f2e3e29b8e7599d4207396 to your computer and use it in GitHub Desktop.
Save safademirel07/43338d41f8f2e3e29b8e7599d4207396 to your computer and use it in GitHub Desktop.
firebase-dynamic-linking-tutorial-2
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