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'; | |
import 'dart:math'; | |
void main() { | |
runApp(TabBarDemo()); | |
} | |
class TabBarDemo extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
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'; | |
void main() { | |
runApp(FlutterDemo()); | |
} | |
class FlutterDemo extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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
// Copyright 2015 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 "dart:async"; | |
void main() { | |
print(AutoMarkeExtension.fromText("Mercedes").toText()); | |
dynamic car = new Car("Mercedes"); | |
print(car); | |
final car2 = Car("Mercedes", color: "blue"); |
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'; | |
void main() { | |
runApp(MaterialApp( | |
title: 'Navigation Basics', | |
home: FirstRoute(), | |
)); | |
} | |
class FirstRoute extends StatelessWidget { |
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'; | |
void main() { | |
runApp(MaterialApp( | |
title: 'Named Routes Demo', | |
// Start the app with the "/" named route. In this case, the app starts | |
// on the FirstScreen widget. | |
initialRoute: '/', | |
routes: { | |
// When navigating to the "/" route, build the FirstScreen widget. |
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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
// Provide a function to handle named routes. Use this function to | |
// identify the named route being pushed, and create the correct |
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'; | |
void main() { | |
runApp(MaterialApp( | |
title: 'Returning Data', | |
home: HomeScreen(), | |
)); | |
} | |
class HomeScreen extends StatelessWidget { |
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/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
class Todo { | |
final String title; | |
final String description; | |
Todo(this.title, this.description); | |
} |
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 is an installation guide how to use HermesLedControl https://github.com/project-alice-assistant/HermesLedControl | |
# with a Matrix Voice Device and Rhasspy | |
# | |
### This is NOT a script yet, use it step by step | |
# | |
# | |
# | |
## Because Matrix Voice does not support bullseye you need to use buster |
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
substitutions: | |
name: "athom-presence-sensor" | |
friendly_name: "presence sensor" | |
room: "" | |
device_description: "mmwave radar human presence sensor" | |
project_name: "Athom Technology.Presence Sensor" | |
project_version: "1.0" | |
esphome: | |
name: "${name}" |
OlderNewer