Framework commit: 6dd929ab289c90cdb22e07a3c650115cbdc55728
Engine PR: https://github.com/flutter/engine/pull/54972/commits/95e95ec01f648339a1ca4d159ae5bdbd9a68d716
import 'package:flutter/cupertino.dart'; | |
void main() { | |
runApp( | |
CupertinoApp( | |
home: CupertinoPageScaffold( | |
child: CupertinoListSection( | |
children: <Widget>[ | |
CupertinoListTile(title: Text('Foo')), | |
CupertinoListTile(title: Text('Bar')), |
import 'package:flutter/cupertino.dart'; | |
void main() { | |
runApp( | |
CupertinoApp( | |
home: CupertinoPageScaffold( | |
navigationBar: CupertinoNavigationBar( | |
middle: Column(children: [ | |
Text('My page'), | |
CupertinoSlidingSegmentedControl<int>( |
import 'package:flutter/cupertino.dart'; | |
void main() { | |
runApp( | |
CupertinoApp( | |
home: CupertinoPageScaffold( | |
navigationBar: CupertinoNavigationBar( | |
trailing: CupertinoButton( | |
child: Text('Close'), | |
onPressed: () {}, |
import 'package:flutter/cupertino.dart'; | |
void main() { | |
runApp( | |
const CupertinoApp( | |
home: CupertinoPageScaffold( | |
navigationBar: CupertinoNavigationBar(), | |
child: Text('Hello world'), | |
), | |
), |
Center() | |
<| DecoratedBox( | |
BoxDecoration( | |
color: Colors.white, | |
borderRadius: BorderRadius.circular(20), | |
boxShadow: [ | |
BoxShadow( | |
color: Colors.grey.withValues(alpha: 0.5), | |
offset: Offset(3, 3) | |
) |
Center() | |
<| DecoratedBox( | |
decoration: BoxDecoration( | |
color: Colors.white, | |
borderRadius: BorderRadius.circular(20), | |
boxShadow: [ | |
BoxShadow( | |
color: Colors.grey.withValues(alpha: 0.5), | |
offset: Offset(3, 3) | |
) |
#include <flutter/dart_project.h> | |
#include <flutter/flutter_view_controller.h> | |
#include <flutter/generated_plugin_registrant.h> | |
#include <windows.h> | |
#include "flutter_window.h" | |
#include "utils.h" | |
int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, | |
_In_ wchar_t *command_line, _In_ int show_command) { |
class Key {} | |
class Size {} | |
class Widget {} | |
// Decorator uses Dart callable magic | |
// https://dart.dev/language/callable-objects | |
class SizedBoxDecorator { | |
SizedBoxDecorator(this.child); | |
final Widget child; |
import 'dart:convert'; | |
void main() { | |
String text = "This string will be base64 encoded!"; | |
print(base64Encode(utf8.encode(text))); | |
} |
Framework commit: 6dd929ab289c90cdb22e07a3c650115cbdc55728
Engine PR: https://github.com/flutter/engine/pull/54972/commits/95e95ec01f648339a1ca4d159ae5bdbd9a68d716