-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement an embedded mode for the flutter web UI (#2701)
- Loading branch information
1 parent
8269561
commit d11a224
Showing
2 changed files
with
94 additions
and
45 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
|
||
<!-- Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file | ||
for details. All rights reserved. Use of this source code is governed by a | ||
BSD-style license that can be found in the LICENSE file. --> | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<title>Embeddings Demo</title> | ||
|
||
<style> | ||
body { | ||
font-size: 16px; | ||
} | ||
|
||
iframe { | ||
border: 1px solid #ccc; | ||
width: 880px; | ||
height: 480px; | ||
margin: 0 20px 20px 20px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div> | ||
<h2>DartPad's Embedded UI</h2> | ||
|
||
<h3>Flutter Web UI</h3> | ||
<iframe src="https://preview.dartpad.dev?embed=true&sample=counter"></iframe> | ||
|
||
<h3>Flutter Web UI (light)</h3> | ||
<iframe src="https://preview.dartpad.dev?embed=true&theme=light&sample=counter"></iframe> | ||
</div> | ||
</body> | ||
</html> |