| Before | After |
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'; | |
| void main() { | |
| runApp(const MaterialApp(home: SlidingSquarePage())); | |
| } | |
| class SlidingSquarePage extends StatefulWidget { | |
| const SlidingSquarePage({super.key}); | |
| @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'; | |
| void main() { | |
| runApp(const MaterialApp(home: SlidingSquarePage())); | |
| } | |
| class SlidingSquarePage extends StatelessWidget { | |
| const SlidingSquarePage({super.key}); | |
| @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
| enum MyEnum { | |
| value1, | |
| value2, | |
| } | |
| void foo() { | |
| // Works as expected! | |
| final Map<MyEnum, String> myMap = <MyEnum, String>{ | |
| MyEnum.value1: 'First', | |
| .value2: 'Second', |
ActionIconTheme.of
Actions.of
AnimatedGrid.maybeOf
AnimatedGrid.of
AnimatedList.maybeOf
AnimatedList.of
AppBarTheme.of
AutocompleteHighlightedOption.of
AutofillGroup.maybeOf
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
| final counter = signal(0); | |
| final userProfile = signal({ 'name': 'Guest' }); | |
| final counterSquared = computed((context) { | |
| final count = context.watch(counter); | |
| return count * count; | |
| }) | |
| final printEffect = effect((context) { | |
| final count = context.watch(counter); | |
| print('Counter changed to $count'); |
Here is the activity on flutter/flutter#158050 in hte last 100 days (from 2025-08-13 to 2025-11-21):
| Total reactions | Total comments | New reactions | New comments |
|---|---|---|---|
| 95 | 14 | 3 | 2 |
- Install DuckDB.
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'; | |
| void main() => runApp(const MyWidget()); | |
| class MyWidget extends StatelessWidget { | |
| const MyWidget({super.key}); | |
| @override | |
| Widget build(BuildContext context) { | |
| return const Column( |
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
| class ParagraphSlide0 : public ParagraphSlide_Base { | |
| public: | |
| ParagraphSlide0() { fName = "Paragraph0"; } | |
| void draw(SkCanvas* canvas) override { | |
| canvas->drawColor(SK_ColorWHITE); | |
| auto multiplier = 5.67; | |
| const char* text = "English English\n\nمرحبا بالعالم"; | |
| auto fontCollection = sk_make_sp<FontCollection>(); |
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 SwiftUI | |
| /// This is the main view of the application, analogous to the `MaterialApp` and `HomePage` widgets in the Flutter example. | |
| struct ContentView: View { | |
| var body: some View { | |
| NavigationStack { | |
| VStack { | |
| NavigationLink { | |
| TextFieldView() | |
| } label: { |
NewerOlder