-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make `cryptography` dependency optional * Setting Flet client build number * Do not set build-number * Update Flet macOS icons * Clipboard re-done to support Safari * Make crypto utils optional Fix #417 * Re-enable Python 3.7 as PDM fixed the issue pdm-project/pdm#1411 (comment) * Fix #431 - Handling Flutter and platform errors * Added additional styles to TextField and Dropdown * label_style * hint_style * helper_style * counter_style * error_style * prefix_style * suffix_style Fix #446 * Fix CI * Add an ability to hide automatic back button in AppBar Fix #209 * Added `SnackBar.action_color` Fix #364 * Control TextFields cursor presentation Fix #356 * Add x and y to DropTarget.on_accept event #329 * Customize colors of Checkbox and Radio Fix #320 * Restore `websocket.defaulttimeout` on connect Fix #413 * `Audio.get_current_position` and `Audio.get_duration` returns `int` Fix #440 * Update container.dart * GestureDetector control started * `Audio.playback_rate` added Fix #451 * All Tap gestures * Gesture detector ready but without throttling * Throttling of drag and hover events * Get version from Git repo * Fix gesture handlers * Added a simple integration test - just for fun * ElevatedButton must show error if only icon specified without text Fix #357 * Display an error when left, top, right or bottom are used not in Stack Fix #296 * Shrink wrap ListView and GridView if bounds are unlimited Fix #331 * Fix #303 - NavigationRail is not shown in a parent without fixed height * Do not bind session value to the IP Fix #457 * Fix path traversal in tar unpack (CVE-2007-4559) * Added `Container.shape` property * Fix the rest of warnings * Remove ControlType enum * Fix flutter tests * Fix MouseCursor enum * Added Flutter package readme
- Loading branch information
1 parent
05a6e8c
commit f39a069
Showing
80 changed files
with
2,455 additions
and
504 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:flet_client/main.dart' as app; | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:integration_test/integration_test.dart'; | ||
|
||
void main() { | ||
IntegrationTestWidgetsFlutterBinding.ensureInitialized(); | ||
|
||
tearDown(() { | ||
debugPrint("TEAR DOWN"); | ||
}); | ||
|
||
group('end-to-end test', () { | ||
testWidgets('tap on the floating action button, verify counter', | ||
(tester) async { | ||
var dir = Directory.current.path; | ||
debugPrint("Current dir: $dir"); | ||
app.main(); | ||
await tester.pumpAndSettle(const Duration(milliseconds: 100), | ||
EnginePhase.sendSemanticsUpdate, const Duration(seconds: 20)); | ||
|
||
// Verify the counter starts at 0. | ||
expect(find.text('0'), findsOneWidget); | ||
|
||
// Finds the floating action button to tap on. | ||
final Finder fab = find.byTooltip('Increment'); | ||
|
||
// Emulate a tap on the floating action button. | ||
await tester.tap(fab); | ||
|
||
// Trigger a frame. | ||
await tester.pumpAndSettle(); | ||
|
||
// Verify the counter increments by 1. | ||
expect(find.text('1'), findsOneWidget); | ||
}); | ||
}); | ||
} |
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 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
Binary file modified
BIN
+1.79 KB
(100%)
client/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-69 Bytes
(98%)
client/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6 Bytes
(100%)
client/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+394 Bytes
(100%)
client/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-34 Bytes
(97%)
client/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+762 Bytes
(100%)
client/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-64 Bytes
(97%)
client/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## 0.0.1 | ||
## 0.1.62 | ||
|
||
* Initial release of Flet package. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,18 @@ | ||
<!-- | ||
This README describes the package. If you publish this package to pub.dev, | ||
this README's contents appear on the landing page for your package. | ||
|
||
For information about how to write a good package README, see the guide for | ||
[writing package pages](https://dart.dev/guides/libraries/writing-package-pages). | ||
# Flet | ||
|
||
For general information about developing packages, see the Dart guide for | ||
[creating packages](https://dart.dev/guides/libraries/create-library-packages) | ||
and the Flutter guide for | ||
[developing packages and plugins](https://flutter.dev/developing-packages). | ||
--> | ||
Provides an interactive Flutter widget which contents is controlled by a remote Python script running on a web server. | ||
|
||
TODO: Put a short description of the package here that helps potential users | ||
know whether this package might be useful for them. | ||
Flet provides a very approachable Python library, so developers without prior Flutter experience can easily build parts of your bigger Flutter app or develop their own mobile apps from scratch. | ||
|
||
## Features | ||
|
||
TODO: List what your package can do. Maybe include images, gifs, or videos. | ||
|
||
## Getting started | ||
|
||
TODO: List prerequisites and provide or point to information on how to | ||
start using the package. | ||
Flet implements Server-Driven UI (SDUI) approach reducing application release cycle. | ||
|
||
## Usage | ||
|
||
TODO: Include short and useful examples for package users. Add longer examples | ||
|
||
to `/example` folder. | ||
|
||
```dart | ||
const like = 'sample'; | ||
``` | ||
|
||
## Additional information | ||
|
||
TODO: Tell users more about the package: where to find more information, how to | ||
contribute to the package, how to file issues, what response they can expect | ||
from the package authors, and more. | ||
``` |
Oops, something went wrong.