This file contains hidden or 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 ConditionalWidget extends StatefulWidget { | |
| const ConditionalWidget({Key? key}) : super(key: key); | |
| @override | |
| State<ConditionalWidget> createState() => _ConditionalWidgetState(); | |
| } | |
| class _ConditionalWidgetState extends State<ConditionalWidget> { |
This file contains hidden or 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 ConditionalWidget extends StatefulWidget { | |
| const ConditionalWidget({Key? key}) : super(key: key); | |
| @override | |
| State<ConditionalWidget> createState() => _ConditionalWidgetState(); | |
| } | |
| class _ConditionalWidgetState extends State<ConditionalWidget> { |
This file contains hidden or 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 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart'; | |
| class SimpleGridScreen extends StatelessWidget { | |
| SimpleGridScreen({Key? key}) : super(key: key); | |
| final httpClient = Client(); | |
| @override |
This file contains hidden or 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'; | |
| class SimpleList extends StatefulWidget { | |
| const SimpleList({Key? key}) : super(key: key); | |
| @override | |
| State<SimpleList> createState() => _SimpleListState(); | |
| } |
This file contains hidden or 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 SimpleList extends StatelessWidget { | |
| const SimpleList({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| title: const Text('Simple List'), |
This file contains hidden or 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 StickyButtonForm extends StatelessWidget { | |
| const StickyButtonForm({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| title: const Text('Sticky Button Form'), |
This file contains hidden or 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 SimpleForm extends StatelessWidget { | |
| const SimpleForm({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| title: const Text('Simple Form'), |
This file contains hidden or 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 MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Sample App', | |
| debugShowCheckedModeBanner: false, | |
| home: Scaffold( | |
| appBar: AppBar(title: const Text('Sample App')), |
This file contains hidden or 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 MyApp extends StatelessWidget { | |
| static const imageUrl = 'https://images.unsplash.com/photo-1589023498616-dbf5d0122fc9?auto=format&fit=crop&w=400'; | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: Scaffold( |
This file contains hidden or 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
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "alwaysShowTabs" : true, | |
| "showTabsInTitlebar" : true, | |
| "showTerminalTitleInTitlebar" : true, | |
| "tabWidthMode": "titleLength", | |
| "confirmCloseAllTabs" : false, | |
| "theme" : "system", |
NewerOlder