Skip to content

Instantly share code, notes, and snippets.

@legalcodes
Last active January 26, 2023 08:32
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save legalcodes/d7b09149ffee2f0535bb0c04d96987f5 to your computer and use it in GitHub Desktop.
Save legalcodes/d7b09149ffee2f0535bb0c04d96987f5 to your computer and use it in GitHub Desktop.
Vanilla Owl
// Copyright 2019 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
import 'package:flutter_web/material.dart';
import 'package:flutter_web_test/flutter_web_test.dart';
import 'package:flutter_web_ui/ui.dart' as ui;
const owl_url = 'https://raw.githubusercontent.com/flutter/website/master/src/images/owl.jpg';
class FadeInDemo extends StatefulWidget {
_FadeInDemoState createState() => _FadeInDemoState();
}
class _FadeInDemoState extends State<FadeInDemo> {
@override
Widget build(BuildContext context) {
return Column(children: <Widget>[
Image.network(owl_url),
MaterialButton(
child: Text(
'Show details',
style: TextStyle(color: Colors.blueAccent),
),
onPressed: () => null),
Container(
child: Column(
children: <Widget>[
Text('Type: Owl'),
Text('Age: 39'),
Text('Employment: None'),
],
),
)
]);
}
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: FadeInDemo(),
),
),
);
}
}
Future<void> main() async {
await ui.webOnlyInitializePlatform();
runApp(
MyApp(),
);
}
@hamedgayou
Copy link

Hi

@hamedgayou
Copy link

@
Uploading natsumi_family_20211106_4.png…
``

@ARSALAN0098916
Copy link

Ok server commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment