From 6b3088ea04834162709e35b8f72c688f7728002a Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Mon, 18 Sep 2023 15:47:12 +0200 Subject: [PATCH] wip --- flutter_01.sksl.json | 1 + .../widget_dialog_animated_test.dart | 4 ++ lib/application.dart | 61 ++++++++++++++++ lib/main_dev.dart | 2 + .../widget_dialog_animated.dart | 70 ++++++++----------- lib/screens/metering/screen_metering.dart | 1 + test_driver/test_driver.md | 5 ++ 7 files changed, 103 insertions(+), 41 deletions(-) create mode 100644 flutter_01.sksl.json diff --git a/flutter_01.sksl.json b/flutter_01.sksl.json new file mode 100644 index 0000000..62a5c19 --- /dev/null +++ b/flutter_01.sksl.json @@ -0,0 +1 @@ +{"platform":"android","name":"Pixel 6","engineRevision":"d44b5a94c976fbb65815374f61ab5392a220b084","data":{"HVIAAAAAABIAAGAAAQ4AAAH477776R24EAAAIOBQAD6P7777777777YDAAAAAAAAAAAGIBIAAABAAAAANAEAAAAAAAAAAAAAABAAOAAAABAAAAAAABBAMAAAAA":"CgAAAExTS1N0AQAAdW5pZm9ybSBmbG9hdDQgc2tfUlRBZGp1c3Q7CnVuaWZvcm0gZmxvYXQzeDMgdW1hdHJpeF9TMTsKaW4gZmxvYXQyIHBvc2l0aW9uOwppbiBoYWxmNCBjb2xvcjsKaW4gZmxvYXQyIGxvY2FsQ29vcmQ7CmZsYXQgb3V0IGhhbGY0IHZjb2xvcl9TMDsKb3V0IGZsb2F0MiB2VHJhbnNmb3JtZWRDb29yZHNfMl9TMDsKdm9pZCBtYWluKCkgCnsKCS8vIFByaW1pdGl2ZSBQcm9jZXNzb3IgUXVhZFBlckVkZ2VBQUdlb21ldHJ5UHJvY2Vzc29yCgl2Y29sb3JfUzAgPSBjb2xvcjsKCXNrX1Bvc2l0aW9uID0gcG9zaXRpb24ueHkwMTsKCXsKCQl2VHJhbnNmb3JtZWRDb29yZHNfMl9TMCA9IGZsb2F0M3gyKHVtYXRyaXhfUzEpICogbG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MyLkxUIC0gc2tfRnJhZ0Nvb3JkLnh5OwoJZmxvYXQyIGR4eTEgPSBza19GcmFnQ29vcmQueHkgLSB1aW5uZXJSZWN0X1MyLlJCOwoJZmxvYXQyIGR4eSA9IG1heChtYXgoZHh5MCwgZHh5MSksIDAuMCk7CgloYWxmIGFscGhhID0gaGFsZihzYXR1cmF0ZSh1cmFkaXVzUGx1c0hhbGZfUzIueCAtIGxlbmd0aChkeHkpKSk7CglyZXR1cm4gX2lucHV0ICogYWxwaGE7Cn0Kdm9pZCBtYWluKCkgCnsKCS8vIFN0YWdlIDAsIFF1YWRQZXJFZGdlQUFHZW9tZXRyeVByb2Nlc3NvcgoJaGFsZjQgb3V0cHV0Q29sb3JfUzA7CglvdXRwdXRDb2xvcl9TMCA9IHZjb2xvcl9TMDsKCWZsb2F0IGNvdmVyYWdlID0gdmNvdmVyYWdlX1MwOwoJaGFsZjQgb3V0cHV0Q292ZXJhZ2VfUzAgPSBoYWxmNChoYWxmKGNvdmVyYWdlKSk7CgloYWxmNCBvdXRwdXRfUzE7CglvdXRwdXRfUzEgPSBNYXRyaXhFZmZlY3RfUzEob3V0cHV0Q29sb3JfUzApOwoJaGFsZjQgb3V0cHV0X1MyOwoJb3V0cHV0X1MyID0gQ2lyY3VsYXJSUmVjdF9TMihvdXRwdXRDb3ZlcmFnZV9TMCk7Cgl7CgkJLy8gWGZlciBQcm9jZXNzb3I6IFBvcnRlciBEdWZmCgkJc2tfRnJhZ0NvbG9yID0gb3V0cHV0X1MxICogb3V0cHV0X1MyOwoJfQp9CgAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAHBvc2l0aW9uCAAAAGNvdmVyYWdlBQAAAGNvbG9yAAAACgAAAGxvY2FsQ29vcmQAAAAAAAA="}} \ No newline at end of file diff --git a/integration_test/widget_dialog_animated_test.dart b/integration_test/widget_dialog_animated_test.dart index c7a9f07..1f5666a 100644 --- a/integration_test/widget_dialog_animated_test.dart +++ b/integration_test/widget_dialog_animated_test.dart @@ -9,6 +9,10 @@ import 'package:lightmeter/screens/metering/components/shared/readings_container import 'mocks/application_mock.dart'; void main() { + runApp(const ApplicationMock(child: AnimatedPickerTest())); +} + +void main2() { final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group('AnimatedDialogPicker test', () { diff --git a/lib/application.dart b/lib/application.dart index 3880a08..61f15d1 100644 --- a/lib/application.dart +++ b/lib/application.dart @@ -1,10 +1,13 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:lightmeter/data/models/film.dart'; import 'package:lightmeter/data/models/supported_locale.dart'; import 'package:lightmeter/environment.dart'; import 'package:lightmeter/generated/l10n.dart'; import 'package:lightmeter/providers.dart'; +import 'package:lightmeter/screens/metering/components/shared/readings_container/components/animated_dialog_picker/widget_picker_dialog_animated.dart'; +import 'package:lightmeter/screens/metering/components/shared/readings_container/components/reading_value_container/widget_container_reading_value.dart'; import 'package:lightmeter/screens/metering/flow_metering.dart'; import 'package:lightmeter/screens/settings/flow_settings.dart'; import 'package:lightmeter/utils/inherited_generics.dart'; @@ -69,3 +72,61 @@ class _AnnotatedRegionWrapper extends StatelessWidget { ); } } + +class AnimatedPickerTest extends StatefulWidget { + const AnimatedPickerTest({super.key}); + + @override + State createState() => _AnimatedPickerTestState(); +} + +class _AnimatedPickerTestState extends State { + Film _selectedFilm = Film.values.first; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: _FilmPicker( + values: Film.values, + selectedValue: _selectedFilm, + onChanged: (value) { + setState(() { + _selectedFilm = value; + }); + }, + ), + ), + ); + } +} + +class _FilmPicker extends StatelessWidget { + final List values; + final Film selectedValue; + final ValueChanged onChanged; + + const _FilmPicker({ + required this.values, + required this.selectedValue, + required this.onChanged, + }); + + @override + Widget build(BuildContext context) { + return AnimatedDialogPicker( + icon: Icons.camera_roll, + title: "Film", + selectedValue: selectedValue, + values: values, + itemTitleBuilder: (_, value) => Text(value.name.isEmpty ? 'None' : value.name), + onChanged: onChanged, + closedChild: ReadingValueContainer.singleValue( + value: ReadingValue( + label: "Film", + value: selectedValue.name.isEmpty ? 'None' : selectedValue.name, + ), + ), + ); + } +} diff --git a/lib/main_dev.dart b/lib/main_dev.dart index fd6ed56..52d99bc 100644 --- a/lib/main_dev.dart +++ b/lib/main_dev.dart @@ -1,8 +1,10 @@ import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; import 'package:lightmeter/application.dart'; import 'package:lightmeter/environment.dart'; Future main() async { WidgetsFlutterBinding.ensureInitialized(); + //debugRepaintRainbowEnabled = true; runApp(const Application(Environment.dev())); } diff --git a/lib/screens/metering/components/shared/readings_container/components/animated_dialog_picker/components/animated_dialog/widget_dialog_animated.dart b/lib/screens/metering/components/shared/readings_container/components/animated_dialog_picker/components/animated_dialog/widget_dialog_animated.dart index c652cdd..72d5e3d 100644 --- a/lib/screens/metering/components/shared/readings_container/components/animated_dialog_picker/components/animated_dialog/widget_dialog_animated.dart +++ b/lib/screens/metering/components/shared/readings_container/components/animated_dialog_picker/components/animated_dialog/widget_dialog_animated.dart @@ -22,15 +22,9 @@ class AnimatedDialog extends StatefulWidget { class AnimatedDialogState extends State with SingleTickerProviderStateMixin { final GlobalKey _key = GlobalKey(); - late final Size _closedSize; - late final Offset _closedOffset; - late final AnimationController _animationController; late final CurvedAnimation _defaultCurvedAnimation; late final Animation _barrierColorAnimation; - late final SizeTween _sizeTween; - late final Animation _sizeAnimation; - late final Animation _offsetAnimation; late final Animation _borderRadiusAnimation; late final Animation _closedOpacityAnimation; late final Animation _openedOpacityAnimation; @@ -87,36 +81,6 @@ class AnimatedDialogState extends State with SingleTickerProvide ), ), ); - - WidgetsBinding.instance.addPostFrameCallback((_) { - final mediaQuery = MediaQuery.of(context); - - _closedSize = _key.currentContext!.size!; - _sizeTween = SizeTween( - begin: _closedSize, - end: widget.openedSize ?? - Size( - mediaQuery.size.width - - mediaQuery.padding.horizontal - - Dimens.dialogMargin.horizontal, - mediaQuery.size.height - mediaQuery.padding.vertical - Dimens.dialogMargin.vertical, - ), - ); - _sizeAnimation = _sizeTween.animate(_defaultCurvedAnimation); - - final renderBox = _key.currentContext!.findRenderObject()! as RenderBox; - _closedOffset = renderBox.localToGlobal(Offset.zero); - _offsetAnimation = SizeTween( - begin: Size( - _closedOffset.dx + _closedSize.width / 2, - _closedOffset.dy + _closedSize.height / 2, - ), - end: Size( - mediaQuery.size.width / 2, - mediaQuery.size.height / 2 + mediaQuery.padding.top / 2 - mediaQuery.padding.bottom / 2, - ), - ).animate(_defaultCurvedAnimation); - }); } @override @@ -152,6 +116,30 @@ class AnimatedDialogState extends State with SingleTickerProvide } void _openDialog() { + final mediaQuery = MediaQuery.of(context); + final closedSize = _key.currentContext!.size!; + final sizeTween = SizeTween( + begin: closedSize, + end: widget.openedSize ?? + Size( + mediaQuery.size.width - mediaQuery.padding.horizontal - Dimens.dialogMargin.horizontal, + mediaQuery.size.height - mediaQuery.padding.vertical - Dimens.dialogMargin.vertical, + ), + ); + final sizeAnimation = sizeTween.animate(_defaultCurvedAnimation); + final renderBox = _key.currentContext!.findRenderObject()! as RenderBox; + final closedOffset = renderBox.localToGlobal(Offset.zero); + final offsetAnimation = SizeTween( + begin: Size( + closedOffset.dx + closedSize.width / 2, + closedOffset.dy + closedSize.height / 2, + ), + end: Size( + mediaQuery.size.width / 2, + mediaQuery.size.height / 2 + mediaQuery.padding.top / 2 - mediaQuery.padding.bottom / 2, + ), + ).animate(_defaultCurvedAnimation); + Navigator.of(context).push( PageRouteBuilder( barrierColor: Colors.transparent, @@ -163,19 +151,19 @@ class AnimatedDialogState extends State with SingleTickerProvide child: _AnimatedOverlay( controller: _animationController, barrierColorAnimation: _barrierColorAnimation, - sizeAnimation: _sizeAnimation, - offsetAnimation: _offsetAnimation, + sizeAnimation: sizeAnimation, + offsetAnimation: offsetAnimation, borderRadiusAnimation: _borderRadiusAnimation, foregroundColorAnimation: _foregroundColorAnimation, elevationAnimation: _elevationAnimation, onDismiss: close, builder: widget.closedChild != null && widget.openedChild != null ? (_) => _AnimatedSwitcher( - sizeAnimation: _sizeAnimation, + sizeAnimation: sizeAnimation, closedOpacityAnimation: _closedOpacityAnimation, openedOpacityAnimation: _openedOpacityAnimation, - closedSize: _sizeTween.begin!, - openedSize: _sizeTween.end!, + closedSize: sizeTween.begin!, + openedSize: sizeTween.end!, closedChild: widget.closedChild!, openedChild: widget.openedChild!, ) diff --git a/lib/screens/metering/screen_metering.dart b/lib/screens/metering/screen_metering.dart index bbfebfc..4219141 100644 --- a/lib/screens/metering/screen_metering.dart +++ b/lib/screens/metering/screen_metering.dart @@ -139,6 +139,7 @@ class _MeteringContainerBuidler extends StatelessWidget { if (ev.isNaN || ev.isInfinite) { return List.empty(); } + return List.empty(); /// Depending on the `stopType` the exposure pairs list length is multiplied by 1,2 or 3 final StopType stopType = context.listen(); diff --git a/test_driver/test_driver.md b/test_driver/test_driver.md index 81aa51a..19d8ab1 100644 --- a/test_driver/test_driver.md +++ b/test_driver/test_driver.md @@ -1,3 +1,8 @@ +https://github.com/gskinnerTeam/flutter-folio/tree/master/benchmark +https://github.com/2d-inc/developer_quest/blob/master/test_driver/performance_test.dart + + + Trace actions ```console flutter drive \