diff --git a/.pubignore b/.pubignore index ac8824e..2c801dc 100644 --- a/.pubignore +++ b/.pubignore @@ -1,6 +1,6 @@ # Files to exclude from pub.dev publishing -SDUI_Flutter_Integration_Guide.txt +Glimpse_Flutter_Integration_Guide.txt docs/ .github/ .hooks/ diff --git a/ADDING_WIDGET.md b/ADDING_WIDGET.md index cfc9d53..26e155c 100644 --- a/ADDING_WIDGET.md +++ b/ADDING_WIDGET.md @@ -1,31 +1,32 @@ -# Adding a New Widget to the SDUI Package +# Adding a New Widget to the Glimpse Package -This guide explains how to add support for a new widget to the Flutter SDUI package, including JSON and proto (gRPC) support. The process ensures your widget can be described by the server, parsed on the client, and rendered as a real Flutter widget. +This guide explains how to add support for a new widget to the Flutter Glimpse package, including JSON and proto (gRPC) support. The process ensures your widget can be described by the server, parsed on the client, and rendered as a real Flutter widget. --- -## 1. Create the SDUI Widget Class +## 1. Create the Glimpse Widget Class - **Where:** `lib/src/widgets/` -- **What:** Create a Dart class (e.g., `SduiMyWidget`) that extends `SduiWidget`. -- **Why:** This class acts as the runtime representation of your widget in the SDUI system. It bridges the data-driven world (JSON/proto) and the actual Flutter widget tree. -- **How:** +- **What:** Create a Dart class (e.g., `GlimpseMyWidget`) that extends `GlimpseWidget`. +- **Why:** This class acts as the runtime representation of your widget in the Glimpse system. It bridges the data-driven world (JSON/proto) and the actual Flutter widget tree. +- **How:** - Add all properties your widget needs (e.g., text, color, children). - - Implement the `toFlutterWidget()` method to convert your SDUI widget to a real Flutter widget. + - Implement the `toFlutterWidget()` method to convert your Glimpse widget to a real Flutter widget. - If your widget has children, make sure to recursively call `toFlutterWidget()` on them. **Example:** + ```dart import 'package:flutter/widgets.dart'; -import 'sdui_widget.dart'; +import 'glimpse_widget.dart'; -class SduiMyWidget extends SduiWidget { +class GlimpseMyWidget extends GlimpseWidget { final String title; final Color? color; - final List children; + final List children; // Add other properties as needed - SduiMyWidget({ + GlimpseMyWidget({ required this.title, this.color, this.children = const [], @@ -41,7 +42,8 @@ class SduiMyWidget extends SduiWidget { } } ``` -*Tip: Look at existing SDUI widgets for structure and naming conventions. Try to keep your API as close as possible to the real Flutter widget for familiarity.* + +_Tip: Look at existing Glimpse widgets for structure and naming conventions. Try to keep your API as close as possible to the real Flutter widget for familiarity._ --- @@ -49,19 +51,20 @@ class SduiMyWidget extends SduiWidget { ### a. JSON Parsing -- **Where:** `lib/src/parser/sdui_proto_parser.dart` +- **Where:** `lib/src/parser/glimpse_proto_parser.dart` - **What:** Add logic to parse your widget from JSON and serialize it back. -- **Why:** This allows the SDUI system to construct your widget from server-provided JSON, and to serialize it back for debugging or round-tripping. +- **Why:** This allows the Glimpse system to construct your widget from server-provided JSON, and to serialize it back for debugging or round-tripping. - **How:** - Add a case for your widget in the `parseJSON` method (e.g., `case 'my_widget': return _parseJsonMyWidget(data);`). - - Implement a `_parseJsonMyWidget(Map data)` method to extract all properties from the JSON map and construct your SDUI widget. - - Update the `toJson` and `_toJsonMyWidget` methods to support serialization (convert your SDUI widget back to a JSON map). + - Implement a `_parseJsonMyWidget(Map data)` method to extract all properties from the JSON map and construct your Glimpse widget. + - Update the `toJson` and `_toJsonMyWidget` methods to support serialization (convert your Glimpse widget back to a JSON map). - If your widget has enums or complex types, add helper methods for parsing/serializing them. **Example:** + ```dart -static SduiMyWidget _parseJsonMyWidget(Map data) { - return SduiMyWidget( +static GlimpseMyWidget _parseJsonMyWidget(Map data) { + return GlimpseMyWidget( title: data['title'] ?? '', color: _parseJsonColor(data['color']), children: (data['children'] as List? ?? []) @@ -73,40 +76,42 @@ static SduiMyWidget _parseJsonMyWidget(Map data) { ### b. Proto Parsing -- **Where:** `lib/src/parser/sdui_proto_parser.dart` +- **Where:** `lib/src/parser/glimpse_proto_parser.dart` - **What:** Add logic to parse your widget from proto and serialize it back. -- **Why:** This allows the SDUI system to construct your widget from gRPC/proto data, and to serialize it back for server communication or round-tripping. +- **Why:** This allows the Glimpse system to construct your widget from gRPC/proto data, and to serialize it back for server communication or round-tripping. - **How:** - Add a case for your widget in the `parseProto` and `fromProto` methods. - - Implement `_parseProtoMyWidget(SduiWidgetData data)` and `myWidgetFromProto` to extract all properties from the proto message and construct your SDUI widget. - - Add `myWidgetToProto` for proto serialization (convert your SDUI widget to a proto message). + - Implement `_parseProtoMyWidget(GlimpseWidgetData data)` and `myWidgetFromProto` to extract all properties from the proto message and construct your Glimpse widget. + - Add `myWidgetToProto` for proto serialization (convert your Glimpse widget to a proto message). - Use helper methods for enums, colors, and nested children as needed. **Example:** + ```dart -static SduiMyWidget myWidgetFromProto(SduiWidgetData data) { - return SduiMyWidget( +static GlimpseMyWidget myWidgetFromProto(GlimpseWidgetData data) { + return GlimpseMyWidget( title: data.stringAttributes['title'] ?? '', color: data.hasColor() ? _parseProtoColor(data.color) : null, - children: data.children.map((c) => SduiParser.parseProto(c)).toList(), + children: data.children.map((c) => GlimpseParser.parseProto(c)).toList(), ); } ``` -*Tip: Use the helpers and patterns from other widgets to handle enums, colors, and nested children. Consistency makes the codebase easier to maintain.* +_Tip: Use the helpers and patterns from other widgets to handle enums, colors, and nested children. Consistency makes the codebase easier to maintain._ --- ## 3. Update the Widget Type Enum -- **Where:** `sdui.proto` (your proto definitions) +- **Where:** `glimpse.proto` (your proto definitions) - **What:** Add your widget to the `WidgetType` enum. - **Why:** This allows the server and client to communicate about your new widget type in a type-safe way. -- **How:** +- **How:** - Add a new value (e.g., `MY_WIDGET`) to the `WidgetType` enum in your proto file. - Regenerate Dart code from your proto files (see README for instructions, usually a script in `tool/`). **Example:** + ```protobuf enum WidgetType { // ... existing types ... @@ -114,27 +119,28 @@ enum WidgetType { } ``` -*Tip: Make sure the enum value is unique and does not conflict with existing types.* +_Tip: Make sure the enum value is unique and does not conflict with existing types._ --- -## 4. Add to Flutter-to-SDUI Converter +## 4. Add to Flutter-to-Glimpse Converter -- **Where:** `lib/src/parser/flutter_to_sdui.dart` -- **What:** Add a case to convert a real Flutter widget to your SDUI widget. -- **Why:** This enables tools and tests to convert existing Flutter code to SDUI format, and helps with migration or round-trip testing. -- **How:** +- **Where:** `lib/src/parser/flutter_to_glimpse.dart` +- **What:** Add a case to convert a real Flutter widget to your Glimpse widget. +- **Why:** This enables tools and tests to convert existing Flutter code to Glimpse format, and helps with migration or round-trip testing. +- **How:** - Add an `else if` block for your widget type. - - Map all relevant properties from the Flutter widget to your SDUI widget. + - Map all relevant properties from the Flutter widget to your Glimpse widget. - If your widget is not supported for conversion, throw an `UnimplementedError` with a clear message. **Example:** + ```dart else if (widget is MyWidget) { - return SduiMyWidget( + return GlimpseMyWidget( title: widget.title, color: widget.color, - children: widget.children.map(flutterToSdui).toList(), + children: widget.children.map(flutterToGlimpse).toList(), ); } ``` @@ -147,11 +153,11 @@ else if (widget is MyWidget) { - **Why:** Testing catches bugs early and ensures your widget behaves as expected in all supported formats. - **How:** - Add unit tests for JSON and proto parsing/serialization. - - Add tests for Flutter-to-SDUI conversion. + - Add tests for Flutter-to-Glimpse conversion. - Create sample JSON and proto definitions for your widget and verify they render correctly in a demo app or test harness. - Test edge cases (missing properties, nulls, invalid values). -*Tip: Use the sample files and test cases for existing widgets as a template. Automated tests are preferred, but manual testing in a demo app is also valuable.* +_Tip: Use the sample files and test cases for existing widgets as a template. Automated tests are preferred, but manual testing in a demo app is also valuable._ --- @@ -169,19 +175,20 @@ else if (widget is MyWidget) { ## Example Checklist - [ ] Widget class in `lib/src/widgets/` -- [ ] JSON parse/serialize in `sdui_proto_parser.dart` -- [ ] Proto parse/serialize in `sdui_proto_parser.dart` +- [ ] JSON parse/serialize in `glimpse_proto_parser.dart` +- [ ] Proto parse/serialize in `glimpse_proto_parser.dart` - [ ] Enum in proto and regenerated Dart code -- [ ] Flutter-to-SDUI conversion +- [ ] Flutter-to-Glimpse conversion - [ ] Tests and sample data - [ ] Documentation --- **Tips & Best Practices:** + - Follow the structure and naming conventions of existing widgets for consistency. - Keep your widget’s API as close as possible to the real Flutter widget for familiarity. -- Only map properties that are supported by both SDUI and the underlying Flutter widget. +- Only map properties that are supported by both Glimpse and the underlying Flutter widget. - If your widget has complex properties (e.g., enums, nested objects), add helper methods for parsing/serialization. - If you’re unsure, look at how similar widgets are implemented in the codebase. - Use clear error messages for unsupported or unimplemented features. @@ -189,4 +196,4 @@ else if (widget is MyWidget) { --- -If you have questions, check the code for similar widgets or open an issue! \ No newline at end of file +If you have questions, check the code for similar widgets or open an issue! diff --git a/CHANGELOG.md b/CHANGELOG.md index db72851..1b9f391 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,8 @@ - JSON and gRPC support for dynamic UI rendering - Protocol Buffers integration for type-safe communication - Core widget support: Text, Column, Row, Container, Scaffold, Image, Icon, SizedBox, Spacer -- SduiGrpcClient for server communication -- SduiGrpcRenderer widget for rendering server-driven UI +- GlimpseGrpcClient for server communication +- GlimpseGrpcRenderer widget for rendering server-driven UI - Comprehensive documentation and examples -- Flutter-to-SDUI conversion utilities +- Flutter-to-Glimpse conversion utilities - Error handling and loading states diff --git a/README.md b/README.md index ed67ed6..2f5d493 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ GDSC VIT -

Flutter SDUI Package

+

Flutter Glimpse

A Flutter package for implementing Server-Driven UI with both JSON and gRPC support

@@ -38,26 +38,26 @@ Add the package to your `pubspec.yaml`: ```yaml dependencies: - flutter_sdui: ^0.0.1 + flutter_glimpse: ^0.0.1 ``` ```yaml # For devs dependencies: - flutter_sdui: - path: path/to/flutter_sdui + flutter_glimpse: + path: path/to/flutter_glimpse ``` Or use the Flutter CLI: ```bash -flutter pub add flutter_sdui +flutter pub add flutter_glimpse ``` Import the package in your Dart code: ```dart -import 'package:flutter_sdui/flutter_sdui.dart'; +import 'package:flutter_glimpse/flutter_glimpse.dart'; ``` ## Basic Usage @@ -70,13 +70,13 @@ For efficient, type-safe server communication: ```dart // Create a gRPC client -final client = SduiGrpcClient( +final client = GlimpseGrpcClient( host: 'your-server.com', port: 50051, ); -// Use the SduiGrpcRenderer widget -SduiGrpcRenderer( +// Use the GlimpseGrpcRenderer widget +GlimpseGrpcRenderer( client: client, screenId: 'home_screen', loadingWidget: CircularProgressIndicator(), @@ -89,29 +89,29 @@ SduiGrpcRenderer( For simpler implementation with standard HTTP requests: ```dart -// Parse SDUI JSON to widget +// Parse Glimpse JSON to widget dynamic json = ...; // Load your JSON -final sduiWidget = SduiParser.parseJSON(json); -final flutterWidget = sduiWidget.toFlutterWidget(); +final glimpseWidget = GlimpseParser.parseJSON(json); +final flutterWidget = glimpseWidget.toFlutterWidget(); ``` -You can also serialize SDUI widgets back to JSON: +You can also serialize Glimpse widgets back to JSON: ```dart -final json = SduiParser.toJson(sduiWidget); +final json = GlimpseParser.toJson(glimpseWidget); ``` -And convert Flutter widgets to SDUI (for supported types): +And convert Flutter widgets to Glimpse (for supported types): ```dart -import 'package:flutter_sdui/src/flutter_to_sdui.dart'; -final sduiWidget = flutterToSdui(myFlutterWidget); +import 'package:flutter_glimpse/src/flutter_to_glimpse.dart'; +final glimpseWidget = flutterToGlimpse(myFlutterWidget); ``` ## Widget Coverage & Extensibility - All core layout and display widgets are supported: `Column`, `Row`, `Text`, `Image`, `SizedBox`, `Container`, `Scaffold`, `Spacer`, `Icon`. -- Adding new widgets is straightforward: implement the SDUI widget, add proto/JSON parsing, and update the toJson and Flutter conversion logic. +- Adding new widgets is straightforward: implement the Glimpse widget, add proto/JSON parsing, and update the toJson and Flutter conversion logic. - The codebase is up-to-date, with no remaining TODOs. ## Example @@ -120,7 +120,7 @@ Here's a complete example of using the gRPC renderer: ```dart import 'package:flutter/material.dart'; -import 'package:flutter_sdui/flutter_sdui.dart'; +import 'package:flutter_glimpse/flutter_glimpse.dart'; void main() { runApp(const MyApp()); @@ -132,31 +132,31 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( - title: 'SDUI Demo', + title: 'Glimpse Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue), useMaterial3: true, ), - home: const SDUIDemo(), + home: const GlimpseDemo(), ); } } -class SDUIDemo extends StatefulWidget { - const SDUIDemo({super.key}); +class GlimpseDemo extends StatefulWidget { + const GlimpseDemo({super.key}); @override - State createState() => _SDUIDemoState(); + State createState() => _GlimpseDemoState(); } -class _SDUIDemoState extends State { - late SduiGrpcClient _grpcClient; +class _GlimpseDemoState extends State { + late GlimpseGrpcClient _grpcClient; String _screenId = 'home'; @override void initState() { super.initState(); - _grpcClient = SduiGrpcClient( + _grpcClient = GlimpseGrpcClient( host: 'localhost', // Replace with your server address port: 50051, // Replace with your server port ); @@ -174,7 +174,7 @@ class _SDUIDemoState extends State { appBar: AppBar( title: const Text('Server-Driven UI Demo'), ), - body: SduiGrpcRenderer( + body: GlimpseGrpcRenderer( client: _grpcClient, screenId: _screenId, loadingWidget: const Center( @@ -211,13 +211,13 @@ Here's a basic example of a Dart server that provides UI definitions via gRPC: ```dart import 'package:grpc/grpc.dart'; -import 'package:flutter_sdui/src/generated/sdui.pb.dart'; -import 'package:flutter_sdui/src/generated/sdui.pbgrpc.dart'; +import 'package:flutter_glimpse/src/generated/glimpse.pb.dart'; +import 'package:flutter_glimpse/src/generated/glimpse.pbgrpc.dart'; Future main() async { final server = Server.create( services: [ - SduiServiceImpl(), + GlimpseServiceImpl(), ], ); @@ -225,10 +225,10 @@ Future main() async { print('Server listening on port 50051...'); } -class SduiServiceImpl extends SduiServiceBase { +class GlimpseServiceImpl extends GlimpseServiceBase { @override - Future getSduiWidget( - ServiceCall call, SduiRequest request) async { + Future getGlimpseWidget( + ServiceCall call, GlimpseRequest request) async { // Return different UI based on the screenId switch (request.screenId) { case 'home': @@ -238,22 +238,22 @@ class SduiServiceImpl extends SduiServiceBase { } } - SduiWidgetData _createHomeScreen() { - return SduiWidgetData() + GlimpseWidgetData _createHomeScreen() { + return GlimpseWidgetData() ..type = WidgetType.SCAFFOLD - ..body = (SduiWidgetData() + ..body = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData()..all = 16) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Welcome to Server-Driven UI!' ..textStyle = (TextStyleData() ..fontSize = 22 ..fontWeight = 'bold')), - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'This UI is rendered from gRPC data' ])); @@ -282,7 +282,7 @@ The package currently supports these Flutter widgets: The package uses Protocol Buffers to define the data structures for gRPC communication. Here's a simplified version of the main message types: ```protobuf -message SduiWidgetData { +message GlimpseWidgetData { WidgetType type = 1; map string_attributes = 2; map double_attributes = 3; @@ -293,16 +293,16 @@ message SduiWidgetData { EdgeInsetsData padding = 7; // Children widgets - repeated SduiWidgetData children = 12; - SduiWidgetData child = 13; + repeated GlimpseWidgetData children = 12; + GlimpseWidgetData child = 13; // Scaffold specific parts - SduiWidgetData app_bar = 14; - SduiWidgetData body = 15; + GlimpseWidgetData app_bar = 14; + GlimpseWidgetData body = 15; } -service SduiService { - rpc GetSduiWidget (SduiRequest) returns (SduiWidgetData); +service GlimpseService { + rpc GetGlimpseWidget (GlimpseRequest) returns (GlimpseWidgetData); } ``` @@ -330,7 +330,7 @@ pwsh ./tool/generate_protos.ps1 ## Contributing -See [ADDING_WIDGET.md](./ADDING_WIDGET.md) for instructions on how to add a new widget to the SDUI package. +See [ADDING_WIDGET.md](./ADDING_WIDGET.md) for instructions on how to add a new widget to the Glimpse package. ## License diff --git a/build.yaml b/build.yaml index 9ac3c2c..65a4408 100644 --- a/build.yaml +++ b/build.yaml @@ -1,10 +1,6 @@ targets: $default: builders: - protoc_plugin: # Using the package name as the builder key - enabled: true - options: - grpc: true # Enable gRPC stub generation - output_directory: lib/src/generated # Specify output directory - generate_mixins: true # Generate mixins for classes - generate_kythe_info: false + # Note: protoc_plugin builder is not required when using protoc directly + # The generate_protos.ps1 script handles code generation + # Keeping this file for potential future build_runner integration diff --git a/doc/doc.md b/doc/doc.md index 2b35aa4..0a7d3cd 100644 --- a/doc/doc.md +++ b/doc/doc.md @@ -1,4 +1,4 @@ -# Comprehensive Guide to Creating Screens with Flutter SDUI and gRPC +# Comprehensive Guide to Creating Screens with Flutter Glimpse and gRPC ## Overview @@ -6,23 +6,24 @@ This guide explains how to create dynamic UI screens for Flutter applications us ## Setup Requirements -1. **Flutter application** with the `flutter_sdui` package +1. **Flutter application** with the `flutter_glimpse` package 2. **gRPC server** (can be implemented in any language that supports gRPC) -3. **Proto definitions** from the SDUI package +3. **Proto definitions** from the Glimpse package ## Creating a gRPC Server ### 1. Set Up Server Environment Example in Dart: + ```dart import 'package:grpc/grpc.dart'; -import 'package:flutter_sdui/src/generated/sdui.pbgrpc.dart'; +import 'package:flutter_glimpse/src/generated/glimpse.pbgrpc.dart'; Future main() async { final server = Server.create( services: [ - SduiServiceImpl(), + GlimpseServiceImpl(), ], ); @@ -32,15 +33,15 @@ Future main() async { } ``` -### 2. Implement the SDUI Service +### 2. Implement the Glimpse Service -Create a class that implements the SDUI service from the protobuf definitions: +Create a class that implements the Glimpse service from the protobuf definitions: ```dart -class SduiServiceImpl extends SduiServiceBase { +class GlimpseServiceImpl extends GlimpseServiceBase { @override - Future getSduiWidget( - ServiceCall call, SduiRequest request) async { + Future getGlimpseWidget( + ServiceCall call, GlimpseRequest request) async { // Return different UI based on the requested screen ID switch (request.screenId) { case 'home': @@ -59,24 +60,24 @@ class SduiServiceImpl extends SduiServiceBase { ### Basic Structure of a Screen -Each screen is built as a tree of `SduiWidgetData` objects: +Each screen is built as a tree of `GlimpseWidgetData` objects: ```dart -SduiWidgetData createScreen() { - final screen = SduiWidgetData() +GlimpseWidgetData createScreen() { + final screen = GlimpseWidgetData() ..type = WidgetType.SCAFFOLD - ..appBar = (SduiWidgetData() + ..appBar = (GlimpseWidgetData() ..type = WidgetType.CONTAINER // Define appBar properties - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Screen Title')) - ..body = (SduiWidgetData() + ..body = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ // Add child widgets here ])); - + return screen; } ``` @@ -84,23 +85,27 @@ SduiWidgetData createScreen() { ### Common Widget Types #### Scaffold + The root container for a screen: + ```dart -SduiWidgetData() +GlimpseWidgetData() ..type = WidgetType.SCAFFOLD ..backgroundColor = (ColorData() ..red = 255 ..green = 255 ..blue = 255 ..alpha = 255) - ..appBar = (SduiWidgetData()...) - ..body = (SduiWidgetData()...) + ..appBar = (GlimpseWidgetData()...) + ..body = (GlimpseWidgetData()...) ``` #### Container + A box that can have decoration, padding, margin: + ```dart -SduiWidgetData() +GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData()..all = 16) ..margin = (EdgeInsetsData() @@ -114,13 +119,15 @@ SduiWidgetData() ..blue = 240 ..alpha = 255) ..borderRadius = (BorderRadiusData()..all = 8)) - ..child = (SduiWidgetData()...) + ..child = (GlimpseWidgetData()...) ``` #### Text + Display text with styling: + ```dart -SduiWidgetData() +GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Hello World' ..textStyle = (TextStyleData() @@ -134,9 +141,11 @@ SduiWidgetData() ``` #### Column and Row + Layout widgets for vertical and horizontal arrangement: + ```dart -SduiWidgetData() +GlimpseWidgetData() ..type = WidgetType.COLUMN // or WidgetType.ROW ..mainAxisAlignment = MainAxisAlignmentProto.MAIN_AXIS_CENTER ..crossAxisAlignment = CrossAxisAlignmentProto.CROSS_AXIS_START @@ -146,9 +155,11 @@ SduiWidgetData() ``` #### Image + Display network images: + ```dart -SduiWidgetData() +GlimpseWidgetData() ..type = WidgetType.IMAGE ..stringAttributes['src'] = 'https://example.com/image.jpg' ..stringAttributes['fit'] = 'cover' @@ -157,9 +168,11 @@ SduiWidgetData() ``` #### Icon + Display Material icons: + ```dart -SduiWidgetData() +GlimpseWidgetData() ..type = WidgetType.ICON ..icon = (IconDataMessage() ..name = 'home' // Material icon name @@ -174,6 +187,7 @@ SduiWidgetData() ### Advanced Styling #### Gradients + ```dart ..boxDecoration = (BoxDecorationData() ..gradient = (GradientData() @@ -197,6 +211,7 @@ SduiWidgetData() ``` #### Shadows + ```dart ..boxDecoration = (BoxDecorationData() ..boxShadow.add(BoxShadowData() @@ -212,6 +227,7 @@ SduiWidgetData() ``` #### Transforms + ```dart ..transform = (TransformData() ..type = TransformData_TransformType.ROTATE @@ -221,11 +237,12 @@ SduiWidgetData() ## Example Screens ### Home Screen with Card Layout + ```dart -SduiWidgetData _createHomeScreen() { - final homeScreen = SduiWidgetData() +GlimpseWidgetData _createHomeScreen() { + final homeScreen = GlimpseWidgetData() ..type = WidgetType.SCAFFOLD - ..appBar = (SduiWidgetData() + ..appBar = (GlimpseWidgetData() ..type = WidgetType.CONTAINER ..boxDecoration = (BoxDecorationData() ..color = (ColorData() @@ -238,7 +255,7 @@ SduiWidgetData _createHomeScreen() { ..left = 16 ..right = 16 ..bottom = 8) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Home Screen' ..textStyle = (TextStyleData() @@ -249,20 +266,20 @@ SduiWidgetData _createHomeScreen() { ..green = 255 ..blue = 255 ..alpha = 255)))) - ..body = (SduiWidgetData() + ..body = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ // Hero Image - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..doubleAttributes['height'] = 200 - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.IMAGE ..stringAttributes['src'] = 'https://picsum.photos/800/300' ..stringAttributes['fit'] = 'cover'), - + // Feature card - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..margin = (EdgeInsetsData()..all = 16) ..padding = (EdgeInsetsData()..all = 16) @@ -273,19 +290,19 @@ SduiWidgetData _createHomeScreen() { ..green = 240 ..blue = 240 ..alpha = 255)) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Feature Card' ..textStyle = (TextStyleData() ..fontSize = 18 ..fontWeight = 'bold'), - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.SIZED_BOX ..doubleAttributes['height'] = 8, - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'This is a description of the feature' ])) @@ -296,20 +313,21 @@ SduiWidgetData _createHomeScreen() { ``` ### Profile Screen with Avatar + ```dart -SduiWidgetData _createProfileScreen() { - final profileScreen = SduiWidgetData() +GlimpseWidgetData _createProfileScreen() { + final profileScreen = GlimpseWidgetData() ..type = WidgetType.SCAFFOLD ..backgroundColor = (ColorData() ..red = 245 ..green = 245 ..blue = 245 ..alpha = 255) - ..body = (SduiWidgetData() + ..body = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ // Profile Header - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..color = (ColorData() ..red = 76 @@ -319,13 +337,13 @@ SduiWidgetData _createProfileScreen() { ..padding = (EdgeInsetsData() ..top = 40 ..bottom = 20) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..mainAxisAlignment = MainAxisAlignmentProto.MAIN_AXIS_CENTER ..crossAxisAlignment = CrossAxisAlignmentProto.CROSS_AXIS_CENTER ..children.addAll([ // Avatar - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..doubleAttributes['width'] = 100 ..doubleAttributes['height'] = 100 @@ -340,16 +358,16 @@ SduiWidgetData _createProfileScreen() { ..alpha = 255) ..width = 3 ..style = BorderStyleProto.SOLID))) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.IMAGE ..stringAttributes['src'] = 'https://randomuser.me/api/portraits/women/44.jpg' ..stringAttributes['fit'] = 'cover'), - + // Name - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.SIZED_BOX ..doubleAttributes['height'] = 16, - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Sarah Johnson' ..textStyle = (TextStyleData() @@ -370,18 +388,22 @@ SduiWidgetData _createProfileScreen() { ## Best Practices 1. **Structure Your Code** + - Create helper methods for repeated UI patterns - Break complex screens into logical sections 2. **Handle Errors Gracefully** + - Always provide an error screen for unknown screen IDs - Include helpful information in error screens 3. **Optimize Network Usage** + - Keep UI definitions concise - Consider caching common UI components 4. **Progressive Enhancement** + - Start with simple layouts and add complexity gradually - Test on different device sizes @@ -396,8 +418,8 @@ SduiWidgetData _createProfileScreen() { Create helper methods for commonly used components: ```dart -SduiWidgetData _createSettingItem(String title, String subtitle, String iconName) { - return SduiWidgetData() +GlimpseWidgetData _createSettingItem(String title, String subtitle, String iconName) { + return GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData() ..all = 12) @@ -408,22 +430,22 @@ SduiWidgetData _createSettingItem(String title, String subtitle, String iconName ..green = 255 ..blue = 255 ..alpha = 255)) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.ROW ..children.addAll([ // Icon - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.ICON ..icon = (IconDataMessage() ..name = iconName), // Content - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = title, - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = subtitle ]) @@ -449,14 +471,17 @@ if (deviceWidth > 600) { ## Troubleshooting 1. **Missing Properties** + - Ensure all required properties are set for each widget type - Check for typos in property names 2. **Enum Value Issues** + - Ensure you're using the correct enum values defined in the proto files - Watch for renamed enum values to avoid conflicts 3. **Nested Structure Problems** + - Verify that all parentheses and brackets are properly closed - Maintain consistent indentation for readability @@ -464,4 +489,4 @@ if (deviceWidth > 600) { - Double-check types for numeric values, especially when converting between int and double - Ensure string attributes are used for text content -By following this guide, you can create rich, dynamic UIs that are delivered from your server to Flutter clients via gRPC. \ No newline at end of file +By following this guide, you can create rich, dynamic UIs that are delivered from your server to Flutter clients via gRPC. diff --git a/example/grpc_example.dart b/example/grpc_example.dart index 740f2eb..99ab976 100644 --- a/example/grpc_example.dart +++ b/example/grpc_example.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:flutter_sdui/flutter_sdui.dart'; +import 'package:flutter_glimpse/flutter_glimpse.dart'; -/// Example application demonstrating Flutter SDUI with gRPC. +/// Example application demonstrating Flutter Glimpse with gRPC. /// /// This example shows how to: /// * Connect to a gRPC server @@ -19,7 +19,7 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( - title: 'SDUI gRPC Demo', + title: 'Glimpse gRPC Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue), useMaterial3: true, @@ -44,14 +44,14 @@ class GrpcRendererDemo extends StatefulWidget { } class _GrpcRendererDemoState extends State { - late SduiGrpcClient _grpcClient; + late GlimpseGrpcClient _grpcClient; String _screenId = 'home'; @override void initState() { super.initState(); // Initialize gRPC client with server connection details - _grpcClient = SduiGrpcClient( + _grpcClient = GlimpseGrpcClient( host: 'localhost', port: 50051, ); @@ -68,7 +68,7 @@ class _GrpcRendererDemoState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: const Text('SDUI gRPC Demo'), + title: const Text('Glimpse gRPC Demo'), ), body: Column( children: [ @@ -101,7 +101,7 @@ class _GrpcRendererDemoState extends State { // Server-driven UI renderer Expanded( - child: SduiGrpcRenderer( + child: GlimpseGrpcRenderer( client: _grpcClient, screenId: _screenId, loadingWidget: const Center( diff --git a/example/grpc_server_example_dart.dart b/example/grpc_server_example_dart.dart index 2cf54a3..47efa0c 100644 --- a/example/grpc_server_example_dart.dart +++ b/example/grpc_server_example_dart.dart @@ -1,8 +1,8 @@ -/// Example gRPC server implementation for Flutter SDUI. +/// Example gRPC server implementation for Flutter Glimpse. /// /// This is a standalone Dart server that provides server-driven UI definitions /// through gRPC. It demonstrates how to: -/// * Set up a gRPC server with SDUI service +/// * Set up a gRPC server with Glimpse service /// * Handle different screen requests /// * Create widget definitions using protobuf /// * Return complex UI structures @@ -14,19 +14,20 @@ /// /// The server listens on port 50051 by default. library; + import 'dart:developer'; import 'package:grpc/grpc.dart'; -import 'package:flutter_sdui/src/generated/sdui.pbgrpc.dart'; +import 'package:flutter_glimpse/src/generated/glimpse.pbgrpc.dart'; /// Entry point for the gRPC server. /// -/// Initializes the server with the SDUI service implementation +/// Initializes the server with the Glimpse service implementation /// and starts listening for client connections. Future main() async { final server = Server.create( services: [ - SduiServiceImpl(), + GlimpseServiceImpl(), ], ); @@ -36,14 +37,14 @@ Future main() async { log('Press Ctrl+C to stop'); } -/// Implementation of the SDUI gRPC service. +/// Implementation of the Glimpse gRPC service. /// /// This class handles incoming requests for UI definitions and returns /// appropriate widget data based on the requested screen ID. -class SduiServiceImpl extends SduiServiceBase { +class GlimpseServiceImpl extends GlimpseServiceBase { @override - Future getSduiWidget( - ServiceCall call, SduiRequest request) async { + Future getGlimpseWidget( + ServiceCall call, GlimpseRequest request) async { log('Received request for screen: ${request.screenId}'); switch (request.screenId) { @@ -62,32 +63,32 @@ class SduiServiceImpl extends SduiServiceBase { /// Creates the home screen UI definition. /// /// Returns a scaffold with an app bar and a column of welcome content. - SduiWidgetData _createHomeScreen() { - final homeScreen = SduiWidgetData() + GlimpseWidgetData _createHomeScreen() { + final homeScreen = GlimpseWidgetData() ..type = WidgetType.SCAFFOLD - ..body = (SduiWidgetData() + ..body = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData()..all = 16) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Welcome to Server-Driven UI!' ..textStyle = (TextStyleData() ..fontSize = 22 ..fontWeight = 'bold')), - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData() ..left = 16 ..right = 16 ..bottom = 16) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'This UI is rendered from data sent by the server via gRPC.'), - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData()..all = 16) ..margin = (EdgeInsetsData() @@ -99,10 +100,10 @@ class SduiServiceImpl extends SduiServiceBase { ..green = 240 ..blue = 240 ..alpha = 255)) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.ROW ..children.addAll([ - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.ICON ..icon = (IconDataMessage() ..name = 'home' @@ -112,10 +113,10 @@ class SduiServiceImpl extends SduiServiceBase { ..blue = 210 ..alpha = 255) ..size = 24), - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.SIZED_BOX ..doubleAttributes['width'] = 16, - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Select a screen from the dropdown.' @@ -125,10 +126,10 @@ class SduiServiceImpl extends SduiServiceBase { return homeScreen; } - SduiWidgetData _createProfileScreen() { - final profileScreen = SduiWidgetData() + GlimpseWidgetData _createProfileScreen() { + final profileScreen = GlimpseWidgetData() ..type = WidgetType.SCAFFOLD - ..appBar = (SduiWidgetData() + ..appBar = (GlimpseWidgetData() ..type = WidgetType.CONTAINER ..boxDecoration = (BoxDecorationData() ..color = (ColorData() @@ -141,7 +142,7 @@ class SduiServiceImpl extends SduiServiceBase { ..left = 16 ..right = 16 ..bottom = 8) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Profile Screen' ..textStyle = (TextStyleData() @@ -152,25 +153,25 @@ class SduiServiceImpl extends SduiServiceBase { ..green = 255 ..blue = 255 ..alpha = 255)))) - ..body = (SduiWidgetData() + ..body = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData()..all = 16) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'User Profile' ..textStyle = (TextStyleData() ..fontSize = 22 ..fontWeight = 'bold')), - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData() ..left = 16 ..right = 16 ..bottom = 24) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'This is a sample profile page rendered from gRPC data.'), @@ -179,10 +180,10 @@ class SduiServiceImpl extends SduiServiceBase { return profileScreen; } - SduiWidgetData _createSettingsScreen() { - final settingsScreen = SduiWidgetData() + GlimpseWidgetData _createSettingsScreen() { + final settingsScreen = GlimpseWidgetData() ..type = WidgetType.SCAFFOLD - ..appBar = (SduiWidgetData() + ..appBar = (GlimpseWidgetData() ..type = WidgetType.CONTAINER ..boxDecoration = (BoxDecorationData() ..color = (ColorData() @@ -195,7 +196,7 @@ class SduiServiceImpl extends SduiServiceBase { ..left = 16 ..right = 16 ..bottom = 8) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Settings Screen' ..textStyle = (TextStyleData() @@ -206,25 +207,25 @@ class SduiServiceImpl extends SduiServiceBase { ..green = 255 ..blue = 255 ..alpha = 255)))) - ..body = (SduiWidgetData() + ..body = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData()..all = 16) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'App Settings' ..textStyle = (TextStyleData() ..fontSize = 22 ..fontWeight = 'bold')), - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData() ..left = 16 ..right = 16 ..bottom = 24) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'This is a sample settings page from the gRPC server.'), @@ -233,10 +234,10 @@ class SduiServiceImpl extends SduiServiceBase { return settingsScreen; } - SduiWidgetData _createErrorScreen() { - final errorScreen = SduiWidgetData() + GlimpseWidgetData _createErrorScreen() { + final errorScreen = GlimpseWidgetData() ..type = WidgetType.SCAFFOLD - ..appBar = (SduiWidgetData() + ..appBar = (GlimpseWidgetData() ..type = WidgetType.CONTAINER ..boxDecoration = (BoxDecorationData() ..color = (ColorData() @@ -249,7 +250,7 @@ class SduiServiceImpl extends SduiServiceBase { ..left = 16 ..right = 16 ..bottom = 8) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Error' ..textStyle = (TextStyleData() @@ -260,13 +261,13 @@ class SduiServiceImpl extends SduiServiceBase { ..green = 255 ..blue = 255 ..alpha = 255)))) - ..body = (SduiWidgetData() + ..body = (GlimpseWidgetData() ..type = WidgetType.COLUMN ..children.addAll([ - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData()..all = 16) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'Screen Not Found' ..textStyle = (TextStyleData() @@ -277,12 +278,12 @@ class SduiServiceImpl extends SduiServiceBase { ..green = 47 ..blue = 47 ..alpha = 255))), - SduiWidgetData() + GlimpseWidgetData() ..type = WidgetType.CONTAINER ..padding = (EdgeInsetsData() ..left = 16 ..right = 16) - ..child = (SduiWidgetData() + ..child = (GlimpseWidgetData() ..type = WidgetType.TEXT ..stringAttributes['text'] = 'The requested screen could not be found. Try a different screen ID.'), diff --git a/example/sample_sdui.json b/example/sample_sdui.json index 0c9fd5f..e6a56d0 100644 --- a/example/sample_sdui.json +++ b/example/sample_sdui.json @@ -5,7 +5,7 @@ "padding": { "all": 16 }, "child": { "type": "text", - "text": "Sample SDUI App", + "text": "Sample Glimpse App", "style": { "fontSize": 20, "fontWeight": "bold" } } }, diff --git a/lib/flutter_glimpse.dart b/lib/flutter_glimpse.dart new file mode 100644 index 0000000..5b34f80 --- /dev/null +++ b/lib/flutter_glimpse.dart @@ -0,0 +1,51 @@ +/// Flutter Glimpse +/// +/// A Flutter package that enables server-driven UI development by parsing +/// protobuf-based widget definitions from a gRPC server and rendering them +/// as native Flutter widgets. +/// +/// This package provides: +/// * Protobuf-based widget parsing and rendering +/// * gRPC client for server communication +/// * A comprehensive set of Glimpse widgets that mirror Flutter's core widgets +/// * Type-safe widget definitions through generated protobuf models +/// +/// ## Usage +/// +/// ```dart +/// // Create a gRPC client +/// final client = GlimpseGrpcClient(host: 'localhost', port: 50051); +/// +/// // Render server-driven UI +/// GlimpseGrpcRenderer( +/// client: client, +/// screenId: 'home', +/// ) +/// ``` +library; + +// Core parsing and widget foundation +export 'src/parser/glimpse_proto_parser.dart'; +export 'src/widgets/glimpse_widget.dart'; + +// Glimpse widget implementations +export 'src/widgets/glimpse_column.dart'; +export 'src/widgets/glimpse_row.dart'; +export 'src/widgets/glimpse_text.dart'; +export 'src/widgets/glimpse_image.dart'; +export 'src/widgets/glimpse_sized_box.dart'; +export 'src/widgets/glimpse_container.dart'; +export 'src/widgets/glimpse_scaffold.dart'; +export 'src/widgets/glimpse_spacer.dart'; +export 'src/widgets/glimpse_icon.dart'; +export 'src/widgets/glimpse_appbar.dart'; + +// Network communication +export 'src/service/glimpse_grpc_client.dart'; +export 'src/renderer/glimpse_grpc_renderer.dart'; + +// Generated protobuf models +export 'src/generated/glimpse.pb.dart'; +export 'src/generated/glimpse.pbgrpc.dart'; +export 'src/generated/glimpse.pbenum.dart'; +export 'src/generated/glimpse.pbjson.dart'; diff --git a/lib/flutter_sdui.dart b/lib/flutter_sdui.dart deleted file mode 100644 index 5b5c8a9..0000000 --- a/lib/flutter_sdui.dart +++ /dev/null @@ -1,51 +0,0 @@ -/// Flutter Server-Driven UI Package -/// -/// A Flutter package that enables server-driven UI development by parsing -/// protobuf-based widget definitions from a gRPC server and rendering them -/// as native Flutter widgets. -/// -/// This package provides: -/// * Protobuf-based widget parsing and rendering -/// * gRPC client for server communication -/// * A comprehensive set of SDUI widgets that mirror Flutter's core widgets -/// * Type-safe widget definitions through generated protobuf models -/// -/// ## Usage -/// -/// ```dart -/// // Create a gRPC client -/// final client = SduiGrpcClient(host: 'localhost', port: 50051); -/// -/// // Render server-driven UI -/// SduiGrpcRenderer( -/// client: client, -/// screenId: 'home', -/// ) -/// ``` -library; - -// Core parsing and widget foundation -export 'src/parser/sdui_proto_parser.dart'; -export 'src/widgets/sdui_widget.dart'; - -// SDUI widget implementations -export 'src/widgets/sdui_column.dart'; -export 'src/widgets/sdui_row.dart'; -export 'src/widgets/sdui_text.dart'; -export 'src/widgets/sdui_image.dart'; -export 'src/widgets/sdui_sized_box.dart'; -export 'src/widgets/sdui_container.dart'; -export 'src/widgets/sdui_scaffold.dart'; -export 'src/widgets/sdui_spacer.dart'; -export 'src/widgets/sdui_icon.dart'; -export 'src/widgets/sdui_appbar.dart'; - -// Network communication -export 'src/service/sdui_grpc_client.dart'; -export 'src/renderer/sdui_grpc_renderer.dart'; - -// Generated protobuf models -export 'src/generated/sdui.pb.dart'; -export 'src/generated/sdui.pbgrpc.dart'; -export 'src/generated/sdui.pbenum.dart'; -export 'src/generated/sdui.pbjson.dart'; diff --git a/lib/src/generated/sdui.pb.dart b/lib/src/generated/glimpse.pb.dart similarity index 62% rename from lib/src/generated/sdui.pb.dart rename to lib/src/generated/glimpse.pb.dart index cb01cf5..3038160 100644 --- a/lib/src/generated/sdui.pb.dart +++ b/lib/src/generated/glimpse.pb.dart @@ -1,6 +1,6 @@ // // Generated code. Do not modify. -// source: sdui.proto +// source: glimpse.proto // // @dart = 3.3 @@ -13,20 +13,18 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import 'sdui.pbenum.dart'; +import 'glimpse.pbenum.dart'; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; -export 'sdui.pbenum.dart'; +export 'glimpse.pbenum.dart'; /// Generic Widget message -class SduiWidgetData extends $pb.GeneratedMessage { - factory SduiWidgetData({ +class GlimpseWidgetData extends $pb.GeneratedMessage { + factory GlimpseWidgetData({ WidgetType? type, - $core.Iterable<$core.MapEntry<$core.String, $core.String>>? - stringAttributes, - $core.Iterable<$core.MapEntry<$core.String, $core.double>>? - doubleAttributes, + $core.Iterable<$core.MapEntry<$core.String, $core.String>>? stringAttributes, + $core.Iterable<$core.MapEntry<$core.String, $core.double>>? doubleAttributes, $core.Iterable<$core.MapEntry<$core.String, $core.bool>>? boolAttributes, $core.Iterable<$core.MapEntry<$core.String, $core.int>>? intAttributes, TextStyleData? textStyle, @@ -35,16 +33,16 @@ class SduiWidgetData extends $pb.GeneratedMessage { ColorData? color, IconDataMessage? icon, BoxDecorationData? boxDecoration, - $core.Iterable? children, - SduiWidgetData? child, - SduiWidgetData? appBar, - SduiWidgetData? body, - SduiWidgetData? floatingActionButton, + $core.Iterable? children, + GlimpseWidgetData? child, + GlimpseWidgetData? appBar, + GlimpseWidgetData? body, + GlimpseWidgetData? floatingActionButton, ColorData? backgroundColor, - SduiWidgetData? bottomNavigationBar, - SduiWidgetData? drawer, - SduiWidgetData? endDrawer, - SduiWidgetData? bottomSheet, + GlimpseWidgetData? bottomNavigationBar, + GlimpseWidgetData? drawer, + GlimpseWidgetData? endDrawer, + GlimpseWidgetData? bottomSheet, $core.bool? resizeToAvoidBottomInset, $core.bool? primary, FloatingActionButtonLocationProto? floatingActionButtonLocation, @@ -83,11 +81,23 @@ class SduiWidgetData extends $pb.GeneratedMessage { $core.int? cacheHeight, $core.double? scale, $core.String? semanticLabel, - SduiWidgetData? errorWidget, - SduiWidgetData? loadingWidget, + GlimpseWidgetData? errorWidget, + GlimpseWidgetData? loadingWidget, $core.double? opacity, $core.bool? applyTextScaling, $core.Iterable? shadows, + GlimpseWidgetData? titleWidget, + ColorData? foregroundColor, + $core.Iterable? actions, + GlimpseWidgetData? leading, + GlimpseWidgetData? bottom, + $core.double? toolbarHeight, + $core.double? leadingWidth, + $core.bool? automaticallyImplyLeading, + GlimpseWidgetData? flexibleSpace, + $core.double? titleSpacing, + $core.double? toolbarOpacity, + $core.double? bottomOpacity, }) { final $result = create(); if (type != null) { @@ -282,218 +292,147 @@ class SduiWidgetData extends $pb.GeneratedMessage { if (shadows != null) { $result.shadows.addAll(shadows); } + if (titleWidget != null) { + $result.titleWidget = titleWidget; + } + if (foregroundColor != null) { + $result.foregroundColor = foregroundColor; + } + if (actions != null) { + $result.actions.addAll(actions); + } + if (leading != null) { + $result.leading = leading; + } + if (bottom != null) { + $result.bottom = bottom; + } + if (toolbarHeight != null) { + $result.toolbarHeight = toolbarHeight; + } + if (leadingWidth != null) { + $result.leadingWidth = leadingWidth; + } + if (automaticallyImplyLeading != null) { + $result.automaticallyImplyLeading = automaticallyImplyLeading; + } + if (flexibleSpace != null) { + $result.flexibleSpace = flexibleSpace; + } + if (titleSpacing != null) { + $result.titleSpacing = titleSpacing; + } + if (toolbarOpacity != null) { + $result.toolbarOpacity = toolbarOpacity; + } + if (bottomOpacity != null) { + $result.bottomOpacity = bottomOpacity; + } return $result; } - SduiWidgetData._() : super(); - factory SduiWidgetData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SduiWidgetData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'SduiWidgetData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, - defaultOrMaker: WidgetType.WIDGET_TYPE_UNSPECIFIED, - valueOf: WidgetType.valueOf, - enumValues: WidgetType.values) - ..m<$core.String, $core.String>( - 2, _omitFieldNames ? '' : 'stringAttributes', - entryClassName: 'SduiWidgetData.StringAttributesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('flutter_sdui')) - ..m<$core.String, $core.double>( - 3, _omitFieldNames ? '' : 'doubleAttributes', - entryClassName: 'SduiWidgetData.DoubleAttributesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OD, - packageName: const $pb.PackageName('flutter_sdui')) - ..m<$core.String, $core.bool>(4, _omitFieldNames ? '' : 'boolAttributes', - entryClassName: 'SduiWidgetData.BoolAttributesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OB, - packageName: const $pb.PackageName('flutter_sdui')) - ..m<$core.String, $core.int>(5, _omitFieldNames ? '' : 'intAttributes', - entryClassName: 'SduiWidgetData.IntAttributesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.O3, - packageName: const $pb.PackageName('flutter_sdui')) - ..aOM(6, _omitFieldNames ? '' : 'textStyle', - subBuilder: TextStyleData.create) - ..aOM(7, _omitFieldNames ? '' : 'padding', - subBuilder: EdgeInsetsData.create) - ..aOM(8, _omitFieldNames ? '' : 'margin', - subBuilder: EdgeInsetsData.create) - ..aOM(9, _omitFieldNames ? '' : 'color', - subBuilder: ColorData.create) - ..aOM(10, _omitFieldNames ? '' : 'icon', - subBuilder: IconDataMessage.create) - ..aOM(11, _omitFieldNames ? '' : 'boxDecoration', - subBuilder: BoxDecorationData.create) - ..pc( - 12, _omitFieldNames ? '' : 'children', $pb.PbFieldType.PM, - subBuilder: SduiWidgetData.create) - ..aOM(13, _omitFieldNames ? '' : 'child', - subBuilder: SduiWidgetData.create) - ..aOM(14, _omitFieldNames ? '' : 'appBar', - subBuilder: SduiWidgetData.create) - ..aOM(15, _omitFieldNames ? '' : 'body', - subBuilder: SduiWidgetData.create) - ..aOM(16, _omitFieldNames ? '' : 'floatingActionButton', - subBuilder: SduiWidgetData.create) - ..aOM(17, _omitFieldNames ? '' : 'backgroundColor', - subBuilder: ColorData.create) - ..aOM(18, _omitFieldNames ? '' : 'bottomNavigationBar', - subBuilder: SduiWidgetData.create) - ..aOM(19, _omitFieldNames ? '' : 'drawer', - subBuilder: SduiWidgetData.create) - ..aOM(20, _omitFieldNames ? '' : 'endDrawer', - subBuilder: SduiWidgetData.create) - ..aOM(21, _omitFieldNames ? '' : 'bottomSheet', - subBuilder: SduiWidgetData.create) + GlimpseWidgetData._() : super(); + factory GlimpseWidgetData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GlimpseWidgetData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GlimpseWidgetData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: WidgetType.WIDGET_TYPE_UNSPECIFIED, valueOf: WidgetType.valueOf, enumValues: WidgetType.values) + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'stringAttributes', entryClassName: 'GlimpseWidgetData.StringAttributesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('flutter_glimpse')) + ..m<$core.String, $core.double>(3, _omitFieldNames ? '' : 'doubleAttributes', entryClassName: 'GlimpseWidgetData.DoubleAttributesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OD, packageName: const $pb.PackageName('flutter_glimpse')) + ..m<$core.String, $core.bool>(4, _omitFieldNames ? '' : 'boolAttributes', entryClassName: 'GlimpseWidgetData.BoolAttributesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OB, packageName: const $pb.PackageName('flutter_glimpse')) + ..m<$core.String, $core.int>(5, _omitFieldNames ? '' : 'intAttributes', entryClassName: 'GlimpseWidgetData.IntAttributesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.O3, packageName: const $pb.PackageName('flutter_glimpse')) + ..aOM(6, _omitFieldNames ? '' : 'textStyle', subBuilder: TextStyleData.create) + ..aOM(7, _omitFieldNames ? '' : 'padding', subBuilder: EdgeInsetsData.create) + ..aOM(8, _omitFieldNames ? '' : 'margin', subBuilder: EdgeInsetsData.create) + ..aOM(9, _omitFieldNames ? '' : 'color', subBuilder: ColorData.create) + ..aOM(10, _omitFieldNames ? '' : 'icon', subBuilder: IconDataMessage.create) + ..aOM(11, _omitFieldNames ? '' : 'boxDecoration', subBuilder: BoxDecorationData.create) + ..pc(12, _omitFieldNames ? '' : 'children', $pb.PbFieldType.PM, subBuilder: GlimpseWidgetData.create) + ..aOM(13, _omitFieldNames ? '' : 'child', subBuilder: GlimpseWidgetData.create) + ..aOM(14, _omitFieldNames ? '' : 'appBar', subBuilder: GlimpseWidgetData.create) + ..aOM(15, _omitFieldNames ? '' : 'body', subBuilder: GlimpseWidgetData.create) + ..aOM(16, _omitFieldNames ? '' : 'floatingActionButton', subBuilder: GlimpseWidgetData.create) + ..aOM(17, _omitFieldNames ? '' : 'backgroundColor', subBuilder: ColorData.create) + ..aOM(18, _omitFieldNames ? '' : 'bottomNavigationBar', subBuilder: GlimpseWidgetData.create) + ..aOM(19, _omitFieldNames ? '' : 'drawer', subBuilder: GlimpseWidgetData.create) + ..aOM(20, _omitFieldNames ? '' : 'endDrawer', subBuilder: GlimpseWidgetData.create) + ..aOM(21, _omitFieldNames ? '' : 'bottomSheet', subBuilder: GlimpseWidgetData.create) ..aOB(22, _omitFieldNames ? '' : 'resizeToAvoidBottomInset') ..aOB(23, _omitFieldNames ? '' : 'primary') - ..e( - 24, - _omitFieldNames ? '' : 'floatingActionButtonLocation', - $pb.PbFieldType.OE, - defaultOrMaker: - FloatingActionButtonLocationProto.FAB_LOCATION_UNSPECIFIED, - valueOf: FloatingActionButtonLocationProto.valueOf, - enumValues: FloatingActionButtonLocationProto.values) + ..e(24, _omitFieldNames ? '' : 'floatingActionButtonLocation', $pb.PbFieldType.OE, defaultOrMaker: FloatingActionButtonLocationProto.FAB_LOCATION_UNSPECIFIED, valueOf: FloatingActionButtonLocationProto.valueOf, enumValues: FloatingActionButtonLocationProto.values) ..aOB(25, _omitFieldNames ? '' : 'extendBody') ..aOB(26, _omitFieldNames ? '' : 'extendBodyBehindAppBar') - ..aOM(27, _omitFieldNames ? '' : 'drawerScrimColor', - subBuilder: ColorData.create) - ..a<$core.double>( - 28, _omitFieldNames ? '' : 'drawerEdgeDragWidth', $pb.PbFieldType.OD) + ..aOM(27, _omitFieldNames ? '' : 'drawerScrimColor', subBuilder: ColorData.create) + ..a<$core.double>(28, _omitFieldNames ? '' : 'drawerEdgeDragWidth', $pb.PbFieldType.OD) ..aOB(29, _omitFieldNames ? '' : 'drawerEnableOpenDragGesture') ..aOB(30, _omitFieldNames ? '' : 'endDrawerEnableOpenDragGesture') - ..e( - 31, _omitFieldNames ? '' : 'mainAxisAlignment', $pb.PbFieldType.OE, - defaultOrMaker: MainAxisAlignmentProto.MAIN_AXIS_ALIGNMENT_UNSPECIFIED, - valueOf: MainAxisAlignmentProto.valueOf, - enumValues: MainAxisAlignmentProto.values) - ..e( - 32, _omitFieldNames ? '' : 'crossAxisAlignment', $pb.PbFieldType.OE, - defaultOrMaker: - CrossAxisAlignmentProto.CROSS_AXIS_ALIGNMENT_UNSPECIFIED, - valueOf: CrossAxisAlignmentProto.valueOf, - enumValues: CrossAxisAlignmentProto.values) - ..e( - 33, _omitFieldNames ? '' : 'mainAxisSize', $pb.PbFieldType.OE, - defaultOrMaker: MainAxisSizeProto.MAIN_AXIS_SIZE_UNSPECIFIED, - valueOf: MainAxisSizeProto.valueOf, - enumValues: MainAxisSizeProto.values) - ..e( - 34, _omitFieldNames ? '' : 'textDirection', $pb.PbFieldType.OE, - defaultOrMaker: TextDirectionProto.TEXT_DIRECTION_UNSPECIFIED, - valueOf: TextDirectionProto.valueOf, - enumValues: TextDirectionProto.values) - ..e( - 35, _omitFieldNames ? '' : 'verticalDirection', $pb.PbFieldType.OE, - defaultOrMaker: VerticalDirectionProto.VERTICAL_DIRECTION_UNSPECIFIED, - valueOf: VerticalDirectionProto.valueOf, - enumValues: VerticalDirectionProto.values) - ..e( - 36, _omitFieldNames ? '' : 'textBaseline', $pb.PbFieldType.OE, - defaultOrMaker: TextBaselineProto.TEXT_BASELINE_UNSPECIFIED, - valueOf: TextBaselineProto.valueOf, - enumValues: TextBaselineProto.values) - ..aOM(37, _omitFieldNames ? '' : 'alignment', - subBuilder: AlignmentData.create) - ..aOM(38, _omitFieldNames ? '' : 'constraints', - subBuilder: BoxConstraintsData.create) - ..aOM(39, _omitFieldNames ? '' : 'transform', - subBuilder: TransformData.create) - ..aOM(40, _omitFieldNames ? '' : 'transformAlignment', - subBuilder: AlignmentData.create) - ..e( - 41, _omitFieldNames ? '' : 'clipBehavior', $pb.PbFieldType.OE, - defaultOrMaker: ClipProto.CLIP_UNSPECIFIED, - valueOf: ClipProto.valueOf, - enumValues: ClipProto.values) - ..e( - 42, _omitFieldNames ? '' : 'textAlign', $pb.PbFieldType.OE, - defaultOrMaker: TextAlignProto.TEXT_ALIGN_UNSPECIFIED, - valueOf: TextAlignProto.valueOf, - enumValues: TextAlignProto.values) - ..e( - 43, _omitFieldNames ? '' : 'overflow', $pb.PbFieldType.OE, - defaultOrMaker: TextOverflowProto.TEXT_OVERFLOW_UNSPECIFIED, - valueOf: TextOverflowProto.valueOf, - enumValues: TextOverflowProto.values) + ..e(31, _omitFieldNames ? '' : 'mainAxisAlignment', $pb.PbFieldType.OE, defaultOrMaker: MainAxisAlignmentProto.MAIN_AXIS_ALIGNMENT_UNSPECIFIED, valueOf: MainAxisAlignmentProto.valueOf, enumValues: MainAxisAlignmentProto.values) + ..e(32, _omitFieldNames ? '' : 'crossAxisAlignment', $pb.PbFieldType.OE, defaultOrMaker: CrossAxisAlignmentProto.CROSS_AXIS_ALIGNMENT_UNSPECIFIED, valueOf: CrossAxisAlignmentProto.valueOf, enumValues: CrossAxisAlignmentProto.values) + ..e(33, _omitFieldNames ? '' : 'mainAxisSize', $pb.PbFieldType.OE, defaultOrMaker: MainAxisSizeProto.MAIN_AXIS_SIZE_UNSPECIFIED, valueOf: MainAxisSizeProto.valueOf, enumValues: MainAxisSizeProto.values) + ..e(34, _omitFieldNames ? '' : 'textDirection', $pb.PbFieldType.OE, defaultOrMaker: TextDirectionProto.TEXT_DIRECTION_UNSPECIFIED, valueOf: TextDirectionProto.valueOf, enumValues: TextDirectionProto.values) + ..e(35, _omitFieldNames ? '' : 'verticalDirection', $pb.PbFieldType.OE, defaultOrMaker: VerticalDirectionProto.VERTICAL_DIRECTION_UNSPECIFIED, valueOf: VerticalDirectionProto.valueOf, enumValues: VerticalDirectionProto.values) + ..e(36, _omitFieldNames ? '' : 'textBaseline', $pb.PbFieldType.OE, defaultOrMaker: TextBaselineProto.TEXT_BASELINE_UNSPECIFIED, valueOf: TextBaselineProto.valueOf, enumValues: TextBaselineProto.values) + ..aOM(37, _omitFieldNames ? '' : 'alignment', subBuilder: AlignmentData.create) + ..aOM(38, _omitFieldNames ? '' : 'constraints', subBuilder: BoxConstraintsData.create) + ..aOM(39, _omitFieldNames ? '' : 'transform', subBuilder: TransformData.create) + ..aOM(40, _omitFieldNames ? '' : 'transformAlignment', subBuilder: AlignmentData.create) + ..e(41, _omitFieldNames ? '' : 'clipBehavior', $pb.PbFieldType.OE, defaultOrMaker: ClipProto.CLIP_UNSPECIFIED, valueOf: ClipProto.valueOf, enumValues: ClipProto.values) + ..e(42, _omitFieldNames ? '' : 'textAlign', $pb.PbFieldType.OE, defaultOrMaker: TextAlignProto.TEXT_ALIGN_UNSPECIFIED, valueOf: TextAlignProto.valueOf, enumValues: TextAlignProto.values) + ..e(43, _omitFieldNames ? '' : 'overflow', $pb.PbFieldType.OE, defaultOrMaker: TextOverflowProto.TEXT_OVERFLOW_UNSPECIFIED, valueOf: TextOverflowProto.valueOf, enumValues: TextOverflowProto.values) ..a<$core.int>(44, _omitFieldNames ? '' : 'maxLines', $pb.PbFieldType.O3) ..aOB(45, _omitFieldNames ? '' : 'softWrap') - ..a<$core.double>( - 46, _omitFieldNames ? '' : 'letterSpacing', $pb.PbFieldType.OD) - ..a<$core.double>( - 47, _omitFieldNames ? '' : 'wordSpacing', $pb.PbFieldType.OD) + ..a<$core.double>(46, _omitFieldNames ? '' : 'letterSpacing', $pb.PbFieldType.OD) + ..a<$core.double>(47, _omitFieldNames ? '' : 'wordSpacing', $pb.PbFieldType.OD) ..a<$core.double>(48, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OD) ..aOS(49, _omitFieldNames ? '' : 'fontFamily') - ..e( - 50, _omitFieldNames ? '' : 'repeat', $pb.PbFieldType.OE, - defaultOrMaker: ImageRepeatProto.IMAGE_REPEAT_UNSPECIFIED, - valueOf: ImageRepeatProto.valueOf, - enumValues: ImageRepeatProto.values) - ..e( - 51, _omitFieldNames ? '' : 'colorBlendMode', $pb.PbFieldType.OE, - defaultOrMaker: BlendModeProto.BLEND_MODE_UNSPECIFIED, - valueOf: BlendModeProto.valueOf, - enumValues: BlendModeProto.values) - ..aOM(52, _omitFieldNames ? '' : 'centerSlice', - subBuilder: RectData.create) + ..e(50, _omitFieldNames ? '' : 'repeat', $pb.PbFieldType.OE, defaultOrMaker: ImageRepeatProto.IMAGE_REPEAT_UNSPECIFIED, valueOf: ImageRepeatProto.valueOf, enumValues: ImageRepeatProto.values) + ..e(51, _omitFieldNames ? '' : 'colorBlendMode', $pb.PbFieldType.OE, defaultOrMaker: BlendModeProto.BLEND_MODE_UNSPECIFIED, valueOf: BlendModeProto.valueOf, enumValues: BlendModeProto.values) + ..aOM(52, _omitFieldNames ? '' : 'centerSlice', subBuilder: RectData.create) ..aOB(53, _omitFieldNames ? '' : 'matchTextDirection') ..aOB(54, _omitFieldNames ? '' : 'gaplessPlayback') - ..e( - 55, _omitFieldNames ? '' : 'filterQuality', $pb.PbFieldType.OE, - defaultOrMaker: FilterQualityProto.FILTER_QUALITY_UNSPECIFIED, - valueOf: FilterQualityProto.valueOf, - enumValues: FilterQualityProto.values) + ..e(55, _omitFieldNames ? '' : 'filterQuality', $pb.PbFieldType.OE, defaultOrMaker: FilterQualityProto.FILTER_QUALITY_UNSPECIFIED, valueOf: FilterQualityProto.valueOf, enumValues: FilterQualityProto.values) ..a<$core.int>(56, _omitFieldNames ? '' : 'cacheWidth', $pb.PbFieldType.O3) ..a<$core.int>(57, _omitFieldNames ? '' : 'cacheHeight', $pb.PbFieldType.O3) ..a<$core.double>(58, _omitFieldNames ? '' : 'scale', $pb.PbFieldType.OD) ..aOS(59, _omitFieldNames ? '' : 'semanticLabel') - ..aOM(60, _omitFieldNames ? '' : 'errorWidget', - subBuilder: SduiWidgetData.create) - ..aOM(61, _omitFieldNames ? '' : 'loadingWidget', - subBuilder: SduiWidgetData.create) + ..aOM(60, _omitFieldNames ? '' : 'errorWidget', subBuilder: GlimpseWidgetData.create) + ..aOM(61, _omitFieldNames ? '' : 'loadingWidget', subBuilder: GlimpseWidgetData.create) ..a<$core.double>(62, _omitFieldNames ? '' : 'opacity', $pb.PbFieldType.OD) ..aOB(63, _omitFieldNames ? '' : 'applyTextScaling') - ..pc(64, _omitFieldNames ? '' : 'shadows', $pb.PbFieldType.PM, - subBuilder: ShadowData.create) - ..hasRequiredFields = false; + ..pc(64, _omitFieldNames ? '' : 'shadows', $pb.PbFieldType.PM, subBuilder: ShadowData.create) + ..aOM(65, _omitFieldNames ? '' : 'titleWidget', subBuilder: GlimpseWidgetData.create) + ..aOM(66, _omitFieldNames ? '' : 'foregroundColor', subBuilder: ColorData.create) + ..pc(67, _omitFieldNames ? '' : 'actions', $pb.PbFieldType.PM, subBuilder: GlimpseWidgetData.create) + ..aOM(68, _omitFieldNames ? '' : 'leading', subBuilder: GlimpseWidgetData.create) + ..aOM(69, _omitFieldNames ? '' : 'bottom', subBuilder: GlimpseWidgetData.create) + ..a<$core.double>(70, _omitFieldNames ? '' : 'toolbarHeight', $pb.PbFieldType.OD) + ..a<$core.double>(71, _omitFieldNames ? '' : 'leadingWidth', $pb.PbFieldType.OD) + ..aOB(72, _omitFieldNames ? '' : 'automaticallyImplyLeading') + ..aOM(73, _omitFieldNames ? '' : 'flexibleSpace', subBuilder: GlimpseWidgetData.create) + ..a<$core.double>(74, _omitFieldNames ? '' : 'titleSpacing', $pb.PbFieldType.OD) + ..a<$core.double>(75, _omitFieldNames ? '' : 'toolbarOpacity', $pb.PbFieldType.OD) + ..a<$core.double>(76, _omitFieldNames ? '' : 'bottomOpacity', $pb.PbFieldType.OD) + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SduiWidgetData clone() => SduiWidgetData()..mergeFromMessage(this); + GlimpseWidgetData clone() => GlimpseWidgetData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SduiWidgetData copyWith(void Function(SduiWidgetData) updates) => - super.copyWith((message) => updates(message as SduiWidgetData)) - as SduiWidgetData; + GlimpseWidgetData copyWith(void Function(GlimpseWidgetData) updates) => super.copyWith((message) => updates(message as GlimpseWidgetData)) as GlimpseWidgetData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static SduiWidgetData create() => SduiWidgetData._(); - SduiWidgetData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static GlimpseWidgetData create() => GlimpseWidgetData._(); + GlimpseWidgetData createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SduiWidgetData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static SduiWidgetData? _defaultInstance; + static GlimpseWidgetData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GlimpseWidgetData? _defaultInstance; @$pb.TagNumber(1) WidgetType get type => $_getN(0); @$pb.TagNumber(1) - set type(WidgetType v) { - $_setField(1, v); - } - + set type(WidgetType v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) @@ -515,10 +454,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(6) TextStyleData get textStyle => $_getN(5); @$pb.TagNumber(6) - set textStyle(TextStyleData v) { - $_setField(6, v); - } - + set textStyle(TextStyleData v) { $_setField(6, v); } @$pb.TagNumber(6) $core.bool hasTextStyle() => $_has(5); @$pb.TagNumber(6) @@ -529,10 +465,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(7) EdgeInsetsData get padding => $_getN(6); @$pb.TagNumber(7) - set padding(EdgeInsetsData v) { - $_setField(7, v); - } - + set padding(EdgeInsetsData v) { $_setField(7, v); } @$pb.TagNumber(7) $core.bool hasPadding() => $_has(6); @$pb.TagNumber(7) @@ -543,10 +476,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(8) EdgeInsetsData get margin => $_getN(7); @$pb.TagNumber(8) - set margin(EdgeInsetsData v) { - $_setField(8, v); - } - + set margin(EdgeInsetsData v) { $_setField(8, v); } @$pb.TagNumber(8) $core.bool hasMargin() => $_has(7); @$pb.TagNumber(8) @@ -557,10 +487,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(9) ColorData get color => $_getN(8); @$pb.TagNumber(9) - set color(ColorData v) { - $_setField(9, v); - } - + set color(ColorData v) { $_setField(9, v); } @$pb.TagNumber(9) $core.bool hasColor() => $_has(8); @$pb.TagNumber(9) @@ -571,10 +498,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(10) IconDataMessage get icon => $_getN(9); @$pb.TagNumber(10) - set icon(IconDataMessage v) { - $_setField(10, v); - } - + set icon(IconDataMessage v) { $_setField(10, v); } @$pb.TagNumber(10) $core.bool hasIcon() => $_has(9); @$pb.TagNumber(10) @@ -585,10 +509,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(11) BoxDecorationData get boxDecoration => $_getN(10); @$pb.TagNumber(11) - set boxDecoration(BoxDecorationData v) { - $_setField(11, v); - } - + set boxDecoration(BoxDecorationData v) { $_setField(11, v); } @$pb.TagNumber(11) $core.bool hasBoxDecoration() => $_has(10); @$pb.TagNumber(11) @@ -598,72 +519,57 @@ class SduiWidgetData extends $pb.GeneratedMessage { /// Children widgets @$pb.TagNumber(12) - $pb.PbList get children => $_getList(11); + $pb.PbList get children => $_getList(11); @$pb.TagNumber(13) - SduiWidgetData get child => $_getN(12); + GlimpseWidgetData get child => $_getN(12); @$pb.TagNumber(13) - set child(SduiWidgetData v) { - $_setField(13, v); - } - + set child(GlimpseWidgetData v) { $_setField(13, v); } @$pb.TagNumber(13) $core.bool hasChild() => $_has(12); @$pb.TagNumber(13) void clearChild() => $_clearField(13); @$pb.TagNumber(13) - SduiWidgetData ensureChild() => $_ensure(12); + GlimpseWidgetData ensureChild() => $_ensure(12); /// Scaffold specific parts @$pb.TagNumber(14) - SduiWidgetData get appBar => $_getN(13); + GlimpseWidgetData get appBar => $_getN(13); @$pb.TagNumber(14) - set appBar(SduiWidgetData v) { - $_setField(14, v); - } - + set appBar(GlimpseWidgetData v) { $_setField(14, v); } @$pb.TagNumber(14) $core.bool hasAppBar() => $_has(13); @$pb.TagNumber(14) void clearAppBar() => $_clearField(14); @$pb.TagNumber(14) - SduiWidgetData ensureAppBar() => $_ensure(13); + GlimpseWidgetData ensureAppBar() => $_ensure(13); @$pb.TagNumber(15) - SduiWidgetData get body => $_getN(14); + GlimpseWidgetData get body => $_getN(14); @$pb.TagNumber(15) - set body(SduiWidgetData v) { - $_setField(15, v); - } - + set body(GlimpseWidgetData v) { $_setField(15, v); } @$pb.TagNumber(15) $core.bool hasBody() => $_has(14); @$pb.TagNumber(15) void clearBody() => $_clearField(15); @$pb.TagNumber(15) - SduiWidgetData ensureBody() => $_ensure(14); + GlimpseWidgetData ensureBody() => $_ensure(14); @$pb.TagNumber(16) - SduiWidgetData get floatingActionButton => $_getN(15); + GlimpseWidgetData get floatingActionButton => $_getN(15); @$pb.TagNumber(16) - set floatingActionButton(SduiWidgetData v) { - $_setField(16, v); - } - + set floatingActionButton(GlimpseWidgetData v) { $_setField(16, v); } @$pb.TagNumber(16) $core.bool hasFloatingActionButton() => $_has(15); @$pb.TagNumber(16) void clearFloatingActionButton() => $_clearField(16); @$pb.TagNumber(16) - SduiWidgetData ensureFloatingActionButton() => $_ensure(15); + GlimpseWidgetData ensureFloatingActionButton() => $_ensure(15); @$pb.TagNumber(17) ColorData get backgroundColor => $_getN(16); @$pb.TagNumber(17) - set backgroundColor(ColorData v) { - $_setField(17, v); - } - + set backgroundColor(ColorData v) { $_setField(17, v); } @$pb.TagNumber(17) $core.bool hasBackgroundColor() => $_has(16); @$pb.TagNumber(17) @@ -673,68 +579,53 @@ class SduiWidgetData extends $pb.GeneratedMessage { /// New Scaffold attributes @$pb.TagNumber(18) - SduiWidgetData get bottomNavigationBar => $_getN(17); + GlimpseWidgetData get bottomNavigationBar => $_getN(17); @$pb.TagNumber(18) - set bottomNavigationBar(SduiWidgetData v) { - $_setField(18, v); - } - + set bottomNavigationBar(GlimpseWidgetData v) { $_setField(18, v); } @$pb.TagNumber(18) $core.bool hasBottomNavigationBar() => $_has(17); @$pb.TagNumber(18) void clearBottomNavigationBar() => $_clearField(18); @$pb.TagNumber(18) - SduiWidgetData ensureBottomNavigationBar() => $_ensure(17); + GlimpseWidgetData ensureBottomNavigationBar() => $_ensure(17); @$pb.TagNumber(19) - SduiWidgetData get drawer => $_getN(18); + GlimpseWidgetData get drawer => $_getN(18); @$pb.TagNumber(19) - set drawer(SduiWidgetData v) { - $_setField(19, v); - } - + set drawer(GlimpseWidgetData v) { $_setField(19, v); } @$pb.TagNumber(19) $core.bool hasDrawer() => $_has(18); @$pb.TagNumber(19) void clearDrawer() => $_clearField(19); @$pb.TagNumber(19) - SduiWidgetData ensureDrawer() => $_ensure(18); + GlimpseWidgetData ensureDrawer() => $_ensure(18); @$pb.TagNumber(20) - SduiWidgetData get endDrawer => $_getN(19); + GlimpseWidgetData get endDrawer => $_getN(19); @$pb.TagNumber(20) - set endDrawer(SduiWidgetData v) { - $_setField(20, v); - } - + set endDrawer(GlimpseWidgetData v) { $_setField(20, v); } @$pb.TagNumber(20) $core.bool hasEndDrawer() => $_has(19); @$pb.TagNumber(20) void clearEndDrawer() => $_clearField(20); @$pb.TagNumber(20) - SduiWidgetData ensureEndDrawer() => $_ensure(19); + GlimpseWidgetData ensureEndDrawer() => $_ensure(19); @$pb.TagNumber(21) - SduiWidgetData get bottomSheet => $_getN(20); + GlimpseWidgetData get bottomSheet => $_getN(20); @$pb.TagNumber(21) - set bottomSheet(SduiWidgetData v) { - $_setField(21, v); - } - + set bottomSheet(GlimpseWidgetData v) { $_setField(21, v); } @$pb.TagNumber(21) $core.bool hasBottomSheet() => $_has(20); @$pb.TagNumber(21) void clearBottomSheet() => $_clearField(21); @$pb.TagNumber(21) - SduiWidgetData ensureBottomSheet() => $_ensure(20); + GlimpseWidgetData ensureBottomSheet() => $_ensure(20); @$pb.TagNumber(22) $core.bool get resizeToAvoidBottomInset => $_getBF(21); @$pb.TagNumber(22) - set resizeToAvoidBottomInset($core.bool v) { - $_setBool(21, v); - } - + set resizeToAvoidBottomInset($core.bool v) { $_setBool(21, v); } @$pb.TagNumber(22) $core.bool hasResizeToAvoidBottomInset() => $_has(21); @$pb.TagNumber(22) @@ -743,23 +634,16 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(23) $core.bool get primary => $_getBF(22); @$pb.TagNumber(23) - set primary($core.bool v) { - $_setBool(22, v); - } - + set primary($core.bool v) { $_setBool(22, v); } @$pb.TagNumber(23) $core.bool hasPrimary() => $_has(22); @$pb.TagNumber(23) void clearPrimary() => $_clearField(23); @$pb.TagNumber(24) - FloatingActionButtonLocationProto get floatingActionButtonLocation => - $_getN(23); + FloatingActionButtonLocationProto get floatingActionButtonLocation => $_getN(23); @$pb.TagNumber(24) - set floatingActionButtonLocation(FloatingActionButtonLocationProto v) { - $_setField(24, v); - } - + set floatingActionButtonLocation(FloatingActionButtonLocationProto v) { $_setField(24, v); } @$pb.TagNumber(24) $core.bool hasFloatingActionButtonLocation() => $_has(23); @$pb.TagNumber(24) @@ -768,10 +652,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(25) $core.bool get extendBody => $_getBF(24); @$pb.TagNumber(25) - set extendBody($core.bool v) { - $_setBool(24, v); - } - + set extendBody($core.bool v) { $_setBool(24, v); } @$pb.TagNumber(25) $core.bool hasExtendBody() => $_has(24); @$pb.TagNumber(25) @@ -780,10 +661,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(26) $core.bool get extendBodyBehindAppBar => $_getBF(25); @$pb.TagNumber(26) - set extendBodyBehindAppBar($core.bool v) { - $_setBool(25, v); - } - + set extendBodyBehindAppBar($core.bool v) { $_setBool(25, v); } @$pb.TagNumber(26) $core.bool hasExtendBodyBehindAppBar() => $_has(25); @$pb.TagNumber(26) @@ -792,10 +670,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(27) ColorData get drawerScrimColor => $_getN(26); @$pb.TagNumber(27) - set drawerScrimColor(ColorData v) { - $_setField(27, v); - } - + set drawerScrimColor(ColorData v) { $_setField(27, v); } @$pb.TagNumber(27) $core.bool hasDrawerScrimColor() => $_has(26); @$pb.TagNumber(27) @@ -806,10 +681,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(28) $core.double get drawerEdgeDragWidth => $_getN(27); @$pb.TagNumber(28) - set drawerEdgeDragWidth($core.double v) { - $_setDouble(27, v); - } - + set drawerEdgeDragWidth($core.double v) { $_setDouble(27, v); } @$pb.TagNumber(28) $core.bool hasDrawerEdgeDragWidth() => $_has(27); @$pb.TagNumber(28) @@ -818,10 +690,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(29) $core.bool get drawerEnableOpenDragGesture => $_getBF(28); @$pb.TagNumber(29) - set drawerEnableOpenDragGesture($core.bool v) { - $_setBool(28, v); - } - + set drawerEnableOpenDragGesture($core.bool v) { $_setBool(28, v); } @$pb.TagNumber(29) $core.bool hasDrawerEnableOpenDragGesture() => $_has(28); @$pb.TagNumber(29) @@ -830,10 +699,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(30) $core.bool get endDrawerEnableOpenDragGesture => $_getBF(29); @$pb.TagNumber(30) - set endDrawerEnableOpenDragGesture($core.bool v) { - $_setBool(29, v); - } - + set endDrawerEnableOpenDragGesture($core.bool v) { $_setBool(29, v); } @$pb.TagNumber(30) $core.bool hasEndDrawerEnableOpenDragGesture() => $_has(29); @$pb.TagNumber(30) @@ -843,10 +709,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(31) MainAxisAlignmentProto get mainAxisAlignment => $_getN(30); @$pb.TagNumber(31) - set mainAxisAlignment(MainAxisAlignmentProto v) { - $_setField(31, v); - } - + set mainAxisAlignment(MainAxisAlignmentProto v) { $_setField(31, v); } @$pb.TagNumber(31) $core.bool hasMainAxisAlignment() => $_has(30); @$pb.TagNumber(31) @@ -855,10 +718,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(32) CrossAxisAlignmentProto get crossAxisAlignment => $_getN(31); @$pb.TagNumber(32) - set crossAxisAlignment(CrossAxisAlignmentProto v) { - $_setField(32, v); - } - + set crossAxisAlignment(CrossAxisAlignmentProto v) { $_setField(32, v); } @$pb.TagNumber(32) $core.bool hasCrossAxisAlignment() => $_has(31); @$pb.TagNumber(32) @@ -867,10 +727,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(33) MainAxisSizeProto get mainAxisSize => $_getN(32); @$pb.TagNumber(33) - set mainAxisSize(MainAxisSizeProto v) { - $_setField(33, v); - } - + set mainAxisSize(MainAxisSizeProto v) { $_setField(33, v); } @$pb.TagNumber(33) $core.bool hasMainAxisSize() => $_has(32); @$pb.TagNumber(33) @@ -879,10 +736,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(34) TextDirectionProto get textDirection => $_getN(33); @$pb.TagNumber(34) - set textDirection(TextDirectionProto v) { - $_setField(34, v); - } - + set textDirection(TextDirectionProto v) { $_setField(34, v); } @$pb.TagNumber(34) $core.bool hasTextDirection() => $_has(33); @$pb.TagNumber(34) @@ -891,10 +745,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(35) VerticalDirectionProto get verticalDirection => $_getN(34); @$pb.TagNumber(35) - set verticalDirection(VerticalDirectionProto v) { - $_setField(35, v); - } - + set verticalDirection(VerticalDirectionProto v) { $_setField(35, v); } @$pb.TagNumber(35) $core.bool hasVerticalDirection() => $_has(34); @$pb.TagNumber(35) @@ -903,10 +754,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(36) TextBaselineProto get textBaseline => $_getN(35); @$pb.TagNumber(36) - set textBaseline(TextBaselineProto v) { - $_setField(36, v); - } - + set textBaseline(TextBaselineProto v) { $_setField(36, v); } @$pb.TagNumber(36) $core.bool hasTextBaseline() => $_has(35); @$pb.TagNumber(36) @@ -916,10 +764,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(37) AlignmentData get alignment => $_getN(36); @$pb.TagNumber(37) - set alignment(AlignmentData v) { - $_setField(37, v); - } - + set alignment(AlignmentData v) { $_setField(37, v); } @$pb.TagNumber(37) $core.bool hasAlignment() => $_has(36); @$pb.TagNumber(37) @@ -930,10 +775,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(38) BoxConstraintsData get constraints => $_getN(37); @$pb.TagNumber(38) - set constraints(BoxConstraintsData v) { - $_setField(38, v); - } - + set constraints(BoxConstraintsData v) { $_setField(38, v); } @$pb.TagNumber(38) $core.bool hasConstraints() => $_has(37); @$pb.TagNumber(38) @@ -944,10 +786,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(39) TransformData get transform => $_getN(38); @$pb.TagNumber(39) - set transform(TransformData v) { - $_setField(39, v); - } - + set transform(TransformData v) { $_setField(39, v); } @$pb.TagNumber(39) $core.bool hasTransform() => $_has(38); @$pb.TagNumber(39) @@ -958,10 +797,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(40) AlignmentData get transformAlignment => $_getN(39); @$pb.TagNumber(40) - set transformAlignment(AlignmentData v) { - $_setField(40, v); - } - + set transformAlignment(AlignmentData v) { $_setField(40, v); } @$pb.TagNumber(40) $core.bool hasTransformAlignment() => $_has(39); @$pb.TagNumber(40) @@ -972,10 +808,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(41) ClipProto get clipBehavior => $_getN(40); @$pb.TagNumber(41) - set clipBehavior(ClipProto v) { - $_setField(41, v); - } - + set clipBehavior(ClipProto v) { $_setField(41, v); } @$pb.TagNumber(41) $core.bool hasClipBehavior() => $_has(40); @$pb.TagNumber(41) @@ -985,10 +818,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(42) TextAlignProto get textAlign => $_getN(41); @$pb.TagNumber(42) - set textAlign(TextAlignProto v) { - $_setField(42, v); - } - + set textAlign(TextAlignProto v) { $_setField(42, v); } @$pb.TagNumber(42) $core.bool hasTextAlign() => $_has(41); @$pb.TagNumber(42) @@ -997,10 +827,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(43) TextOverflowProto get overflow => $_getN(42); @$pb.TagNumber(43) - set overflow(TextOverflowProto v) { - $_setField(43, v); - } - + set overflow(TextOverflowProto v) { $_setField(43, v); } @$pb.TagNumber(43) $core.bool hasOverflow() => $_has(42); @$pb.TagNumber(43) @@ -1009,10 +836,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(44) $core.int get maxLines => $_getIZ(43); @$pb.TagNumber(44) - set maxLines($core.int v) { - $_setSignedInt32(43, v); - } - + set maxLines($core.int v) { $_setSignedInt32(43, v); } @$pb.TagNumber(44) $core.bool hasMaxLines() => $_has(43); @$pb.TagNumber(44) @@ -1021,10 +845,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(45) $core.bool get softWrap => $_getBF(44); @$pb.TagNumber(45) - set softWrap($core.bool v) { - $_setBool(44, v); - } - + set softWrap($core.bool v) { $_setBool(44, v); } @$pb.TagNumber(45) $core.bool hasSoftWrap() => $_has(44); @$pb.TagNumber(45) @@ -1033,10 +854,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(46) $core.double get letterSpacing => $_getN(45); @$pb.TagNumber(46) - set letterSpacing($core.double v) { - $_setDouble(45, v); - } - + set letterSpacing($core.double v) { $_setDouble(45, v); } @$pb.TagNumber(46) $core.bool hasLetterSpacing() => $_has(45); @$pb.TagNumber(46) @@ -1045,10 +863,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(47) $core.double get wordSpacing => $_getN(46); @$pb.TagNumber(47) - set wordSpacing($core.double v) { - $_setDouble(46, v); - } - + set wordSpacing($core.double v) { $_setDouble(46, v); } @$pb.TagNumber(47) $core.bool hasWordSpacing() => $_has(46); @$pb.TagNumber(47) @@ -1057,10 +872,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(48) $core.double get height => $_getN(47); @$pb.TagNumber(48) - set height($core.double v) { - $_setDouble(47, v); - } - + set height($core.double v) { $_setDouble(47, v); } @$pb.TagNumber(48) $core.bool hasHeight() => $_has(47); @$pb.TagNumber(48) @@ -1069,10 +881,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(49) $core.String get fontFamily => $_getSZ(48); @$pb.TagNumber(49) - set fontFamily($core.String v) { - $_setString(48, v); - } - + set fontFamily($core.String v) { $_setString(48, v); } @$pb.TagNumber(49) $core.bool hasFontFamily() => $_has(48); @$pb.TagNumber(49) @@ -1082,10 +891,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(50) ImageRepeatProto get repeat => $_getN(49); @$pb.TagNumber(50) - set repeat(ImageRepeatProto v) { - $_setField(50, v); - } - + set repeat(ImageRepeatProto v) { $_setField(50, v); } @$pb.TagNumber(50) $core.bool hasRepeat() => $_has(49); @$pb.TagNumber(50) @@ -1094,10 +900,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(51) BlendModeProto get colorBlendMode => $_getN(50); @$pb.TagNumber(51) - set colorBlendMode(BlendModeProto v) { - $_setField(51, v); - } - + set colorBlendMode(BlendModeProto v) { $_setField(51, v); } @$pb.TagNumber(51) $core.bool hasColorBlendMode() => $_has(50); @$pb.TagNumber(51) @@ -1106,10 +909,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(52) RectData get centerSlice => $_getN(51); @$pb.TagNumber(52) - set centerSlice(RectData v) { - $_setField(52, v); - } - + set centerSlice(RectData v) { $_setField(52, v); } @$pb.TagNumber(52) $core.bool hasCenterSlice() => $_has(51); @$pb.TagNumber(52) @@ -1120,10 +920,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(53) $core.bool get matchTextDirection => $_getBF(52); @$pb.TagNumber(53) - set matchTextDirection($core.bool v) { - $_setBool(52, v); - } - + set matchTextDirection($core.bool v) { $_setBool(52, v); } @$pb.TagNumber(53) $core.bool hasMatchTextDirection() => $_has(52); @$pb.TagNumber(53) @@ -1132,10 +929,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(54) $core.bool get gaplessPlayback => $_getBF(53); @$pb.TagNumber(54) - set gaplessPlayback($core.bool v) { - $_setBool(53, v); - } - + set gaplessPlayback($core.bool v) { $_setBool(53, v); } @$pb.TagNumber(54) $core.bool hasGaplessPlayback() => $_has(53); @$pb.TagNumber(54) @@ -1144,10 +938,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(55) FilterQualityProto get filterQuality => $_getN(54); @$pb.TagNumber(55) - set filterQuality(FilterQualityProto v) { - $_setField(55, v); - } - + set filterQuality(FilterQualityProto v) { $_setField(55, v); } @$pb.TagNumber(55) $core.bool hasFilterQuality() => $_has(54); @$pb.TagNumber(55) @@ -1156,10 +947,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(56) $core.int get cacheWidth => $_getIZ(55); @$pb.TagNumber(56) - set cacheWidth($core.int v) { - $_setSignedInt32(55, v); - } - + set cacheWidth($core.int v) { $_setSignedInt32(55, v); } @$pb.TagNumber(56) $core.bool hasCacheWidth() => $_has(55); @$pb.TagNumber(56) @@ -1168,10 +956,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(57) $core.int get cacheHeight => $_getIZ(56); @$pb.TagNumber(57) - set cacheHeight($core.int v) { - $_setSignedInt32(56, v); - } - + set cacheHeight($core.int v) { $_setSignedInt32(56, v); } @$pb.TagNumber(57) $core.bool hasCacheHeight() => $_has(56); @$pb.TagNumber(57) @@ -1180,10 +965,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(58) $core.double get scale => $_getN(57); @$pb.TagNumber(58) - set scale($core.double v) { - $_setDouble(57, v); - } - + set scale($core.double v) { $_setDouble(57, v); } @$pb.TagNumber(58) $core.bool hasScale() => $_has(57); @$pb.TagNumber(58) @@ -1192,51 +974,39 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(59) $core.String get semanticLabel => $_getSZ(58); @$pb.TagNumber(59) - set semanticLabel($core.String v) { - $_setString(58, v); - } - + set semanticLabel($core.String v) { $_setString(58, v); } @$pb.TagNumber(59) $core.bool hasSemanticLabel() => $_has(58); @$pb.TagNumber(59) void clearSemanticLabel() => $_clearField(59); @$pb.TagNumber(60) - SduiWidgetData get errorWidget => $_getN(59); + GlimpseWidgetData get errorWidget => $_getN(59); @$pb.TagNumber(60) - set errorWidget(SduiWidgetData v) { - $_setField(60, v); - } - + set errorWidget(GlimpseWidgetData v) { $_setField(60, v); } @$pb.TagNumber(60) $core.bool hasErrorWidget() => $_has(59); @$pb.TagNumber(60) void clearErrorWidget() => $_clearField(60); @$pb.TagNumber(60) - SduiWidgetData ensureErrorWidget() => $_ensure(59); + GlimpseWidgetData ensureErrorWidget() => $_ensure(59); @$pb.TagNumber(61) - SduiWidgetData get loadingWidget => $_getN(60); + GlimpseWidgetData get loadingWidget => $_getN(60); @$pb.TagNumber(61) - set loadingWidget(SduiWidgetData v) { - $_setField(61, v); - } - + set loadingWidget(GlimpseWidgetData v) { $_setField(61, v); } @$pb.TagNumber(61) $core.bool hasLoadingWidget() => $_has(60); @$pb.TagNumber(61) void clearLoadingWidget() => $_clearField(61); @$pb.TagNumber(61) - SduiWidgetData ensureLoadingWidget() => $_ensure(60); + GlimpseWidgetData ensureLoadingWidget() => $_ensure(60); /// Icon specific attributes @$pb.TagNumber(62) $core.double get opacity => $_getN(61); @$pb.TagNumber(62) - set opacity($core.double v) { - $_setDouble(61, v); - } - + set opacity($core.double v) { $_setDouble(61, v); } @$pb.TagNumber(62) $core.bool hasOpacity() => $_has(61); @$pb.TagNumber(62) @@ -1245,10 +1015,7 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(63) $core.bool get applyTextScaling => $_getBF(62); @$pb.TagNumber(63) - set applyTextScaling($core.bool v) { - $_setBool(62, v); - } - + set applyTextScaling($core.bool v) { $_setBool(62, v); } @$pb.TagNumber(63) $core.bool hasApplyTextScaling() => $_has(62); @$pb.TagNumber(63) @@ -1256,6 +1023,119 @@ class SduiWidgetData extends $pb.GeneratedMessage { @$pb.TagNumber(64) $pb.PbList get shadows => $_getList(63); + + /// AppBar specific attributes + @$pb.TagNumber(65) + GlimpseWidgetData get titleWidget => $_getN(64); + @$pb.TagNumber(65) + set titleWidget(GlimpseWidgetData v) { $_setField(65, v); } + @$pb.TagNumber(65) + $core.bool hasTitleWidget() => $_has(64); + @$pb.TagNumber(65) + void clearTitleWidget() => $_clearField(65); + @$pb.TagNumber(65) + GlimpseWidgetData ensureTitleWidget() => $_ensure(64); + + @$pb.TagNumber(66) + ColorData get foregroundColor => $_getN(65); + @$pb.TagNumber(66) + set foregroundColor(ColorData v) { $_setField(66, v); } + @$pb.TagNumber(66) + $core.bool hasForegroundColor() => $_has(65); + @$pb.TagNumber(66) + void clearForegroundColor() => $_clearField(66); + @$pb.TagNumber(66) + ColorData ensureForegroundColor() => $_ensure(65); + + @$pb.TagNumber(67) + $pb.PbList get actions => $_getList(66); + + @$pb.TagNumber(68) + GlimpseWidgetData get leading => $_getN(67); + @$pb.TagNumber(68) + set leading(GlimpseWidgetData v) { $_setField(68, v); } + @$pb.TagNumber(68) + $core.bool hasLeading() => $_has(67); + @$pb.TagNumber(68) + void clearLeading() => $_clearField(68); + @$pb.TagNumber(68) + GlimpseWidgetData ensureLeading() => $_ensure(67); + + @$pb.TagNumber(69) + GlimpseWidgetData get bottom => $_getN(68); + @$pb.TagNumber(69) + set bottom(GlimpseWidgetData v) { $_setField(69, v); } + @$pb.TagNumber(69) + $core.bool hasBottom() => $_has(68); + @$pb.TagNumber(69) + void clearBottom() => $_clearField(69); + @$pb.TagNumber(69) + GlimpseWidgetData ensureBottom() => $_ensure(68); + + @$pb.TagNumber(70) + $core.double get toolbarHeight => $_getN(69); + @$pb.TagNumber(70) + set toolbarHeight($core.double v) { $_setDouble(69, v); } + @$pb.TagNumber(70) + $core.bool hasToolbarHeight() => $_has(69); + @$pb.TagNumber(70) + void clearToolbarHeight() => $_clearField(70); + + @$pb.TagNumber(71) + $core.double get leadingWidth => $_getN(70); + @$pb.TagNumber(71) + set leadingWidth($core.double v) { $_setDouble(70, v); } + @$pb.TagNumber(71) + $core.bool hasLeadingWidth() => $_has(70); + @$pb.TagNumber(71) + void clearLeadingWidth() => $_clearField(71); + + @$pb.TagNumber(72) + $core.bool get automaticallyImplyLeading => $_getBF(71); + @$pb.TagNumber(72) + set automaticallyImplyLeading($core.bool v) { $_setBool(71, v); } + @$pb.TagNumber(72) + $core.bool hasAutomaticallyImplyLeading() => $_has(71); + @$pb.TagNumber(72) + void clearAutomaticallyImplyLeading() => $_clearField(72); + + @$pb.TagNumber(73) + GlimpseWidgetData get flexibleSpace => $_getN(72); + @$pb.TagNumber(73) + set flexibleSpace(GlimpseWidgetData v) { $_setField(73, v); } + @$pb.TagNumber(73) + $core.bool hasFlexibleSpace() => $_has(72); + @$pb.TagNumber(73) + void clearFlexibleSpace() => $_clearField(73); + @$pb.TagNumber(73) + GlimpseWidgetData ensureFlexibleSpace() => $_ensure(72); + + @$pb.TagNumber(74) + $core.double get titleSpacing => $_getN(73); + @$pb.TagNumber(74) + set titleSpacing($core.double v) { $_setDouble(73, v); } + @$pb.TagNumber(74) + $core.bool hasTitleSpacing() => $_has(73); + @$pb.TagNumber(74) + void clearTitleSpacing() => $_clearField(74); + + @$pb.TagNumber(75) + $core.double get toolbarOpacity => $_getN(74); + @$pb.TagNumber(75) + set toolbarOpacity($core.double v) { $_setDouble(74, v); } + @$pb.TagNumber(75) + $core.bool hasToolbarOpacity() => $_has(74); + @$pb.TagNumber(75) + void clearToolbarOpacity() => $_clearField(75); + + @$pb.TagNumber(76) + $core.double get bottomOpacity => $_getN(75); + @$pb.TagNumber(76) + set bottomOpacity($core.double v) { $_setDouble(75, v); } + @$pb.TagNumber(76) + $core.bool hasBottomOpacity() => $_has(75); + @$pb.TagNumber(76) + void clearBottomOpacity() => $_clearField(76); } /// Message for Color @@ -1282,28 +1162,21 @@ class ColorData extends $pb.GeneratedMessage { return $result; } ColorData._() : super(); - factory ColorData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ColorData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ColorData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + factory ColorData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ColorData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ColorData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..a<$core.int>(1, _omitFieldNames ? '' : 'alpha', $pb.PbFieldType.O3) ..a<$core.int>(2, _omitFieldNames ? '' : 'red', $pb.PbFieldType.O3) ..a<$core.int>(3, _omitFieldNames ? '' : 'green', $pb.PbFieldType.O3) ..a<$core.int>(4, _omitFieldNames ? '' : 'blue', $pb.PbFieldType.O3) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ColorData clone() => ColorData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ColorData copyWith(void Function(ColorData) updates) => - super.copyWith((message) => updates(message as ColorData)) as ColorData; + ColorData copyWith(void Function(ColorData) updates) => super.copyWith((message) => updates(message as ColorData)) as ColorData; $pb.BuilderInfo get info_ => _i; @@ -1312,17 +1185,13 @@ class ColorData extends $pb.GeneratedMessage { ColorData createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ColorData getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ColorData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ColorData? _defaultInstance; @$pb.TagNumber(1) $core.int get alpha => $_getIZ(0); @$pb.TagNumber(1) - set alpha($core.int v) { - $_setSignedInt32(0, v); - } - + set alpha($core.int v) { $_setSignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasAlpha() => $_has(0); @$pb.TagNumber(1) @@ -1331,10 +1200,7 @@ class ColorData extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get red => $_getIZ(1); @$pb.TagNumber(2) - set red($core.int v) { - $_setSignedInt32(1, v); - } - + set red($core.int v) { $_setSignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasRed() => $_has(1); @$pb.TagNumber(2) @@ -1343,10 +1209,7 @@ class ColorData extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get green => $_getIZ(2); @$pb.TagNumber(3) - set green($core.int v) { - $_setSignedInt32(2, v); - } - + set green($core.int v) { $_setSignedInt32(2, v); } @$pb.TagNumber(3) $core.bool hasGreen() => $_has(2); @$pb.TagNumber(3) @@ -1355,10 +1218,7 @@ class ColorData extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get blue => $_getIZ(3); @$pb.TagNumber(4) - set blue($core.int v) { - $_setSignedInt32(3, v); - } - + set blue($core.int v) { $_setSignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasBlue() => $_has(3); @$pb.TagNumber(4) @@ -1393,50 +1253,37 @@ class EdgeInsetsData extends $pb.GeneratedMessage { return $result; } EdgeInsetsData._() : super(); - factory EdgeInsetsData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory EdgeInsetsData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'EdgeInsetsData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + factory EdgeInsetsData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory EdgeInsetsData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EdgeInsetsData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..a<$core.double>(1, _omitFieldNames ? '' : 'left', $pb.PbFieldType.OD) ..a<$core.double>(2, _omitFieldNames ? '' : 'top', $pb.PbFieldType.OD) ..a<$core.double>(3, _omitFieldNames ? '' : 'right', $pb.PbFieldType.OD) ..a<$core.double>(4, _omitFieldNames ? '' : 'bottom', $pb.PbFieldType.OD) ..a<$core.double>(5, _omitFieldNames ? '' : 'all', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') EdgeInsetsData clone() => EdgeInsetsData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - EdgeInsetsData copyWith(void Function(EdgeInsetsData) updates) => - super.copyWith((message) => updates(message as EdgeInsetsData)) - as EdgeInsetsData; + EdgeInsetsData copyWith(void Function(EdgeInsetsData) updates) => super.copyWith((message) => updates(message as EdgeInsetsData)) as EdgeInsetsData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static EdgeInsetsData create() => EdgeInsetsData._(); EdgeInsetsData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static EdgeInsetsData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static EdgeInsetsData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static EdgeInsetsData? _defaultInstance; @$pb.TagNumber(1) $core.double get left => $_getN(0); @$pb.TagNumber(1) - set left($core.double v) { - $_setDouble(0, v); - } - + set left($core.double v) { $_setDouble(0, v); } @$pb.TagNumber(1) $core.bool hasLeft() => $_has(0); @$pb.TagNumber(1) @@ -1445,10 +1292,7 @@ class EdgeInsetsData extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get top => $_getN(1); @$pb.TagNumber(2) - set top($core.double v) { - $_setDouble(1, v); - } - + set top($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasTop() => $_has(1); @$pb.TagNumber(2) @@ -1457,10 +1301,7 @@ class EdgeInsetsData extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get right => $_getN(2); @$pb.TagNumber(3) - set right($core.double v) { - $_setDouble(2, v); - } - + set right($core.double v) { $_setDouble(2, v); } @$pb.TagNumber(3) $core.bool hasRight() => $_has(2); @$pb.TagNumber(3) @@ -1469,10 +1310,7 @@ class EdgeInsetsData extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.double get bottom => $_getN(3); @$pb.TagNumber(4) - set bottom($core.double v) { - $_setDouble(3, v); - } - + set bottom($core.double v) { $_setDouble(3, v); } @$pb.TagNumber(4) $core.bool hasBottom() => $_has(3); @$pb.TagNumber(4) @@ -1481,10 +1319,7 @@ class EdgeInsetsData extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.double get all => $_getN(4); @$pb.TagNumber(5) - set all($core.double v) { - $_setDouble(4, v); - } - + set all($core.double v) { $_setDouble(4, v); } @$pb.TagNumber(5) $core.bool hasAll() => $_has(4); @$pb.TagNumber(5) @@ -1535,65 +1370,41 @@ class TextStyleData extends $pb.GeneratedMessage { return $result; } TextStyleData._() : super(); - factory TextStyleData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory TextStyleData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'TextStyleData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'color', - subBuilder: ColorData.create) + factory TextStyleData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory TextStyleData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TextStyleData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'color', subBuilder: ColorData.create) ..a<$core.double>(2, _omitFieldNames ? '' : 'fontSize', $pb.PbFieldType.OD) ..aOS(3, _omitFieldNames ? '' : 'fontWeight') - ..e( - 4, _omitFieldNames ? '' : 'decoration', $pb.PbFieldType.OE, - defaultOrMaker: TextDecorationProto.TEXT_DECORATION_UNSPECIFIED, - valueOf: TextDecorationProto.valueOf, - enumValues: TextDecorationProto.values) - ..a<$core.double>( - 5, _omitFieldNames ? '' : 'letterSpacing', $pb.PbFieldType.OD) - ..a<$core.double>( - 6, _omitFieldNames ? '' : 'wordSpacing', $pb.PbFieldType.OD) + ..e(4, _omitFieldNames ? '' : 'decoration', $pb.PbFieldType.OE, defaultOrMaker: TextDecorationProto.TEXT_DECORATION_UNSPECIFIED, valueOf: TextDecorationProto.valueOf, enumValues: TextDecorationProto.values) + ..a<$core.double>(5, _omitFieldNames ? '' : 'letterSpacing', $pb.PbFieldType.OD) + ..a<$core.double>(6, _omitFieldNames ? '' : 'wordSpacing', $pb.PbFieldType.OD) ..a<$core.double>(7, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OD) ..aOS(8, _omitFieldNames ? '' : 'fontFamily') - ..e( - 9, _omitFieldNames ? '' : 'fontStyle', $pb.PbFieldType.OE, - defaultOrMaker: FontStyleProto.FONT_STYLE_UNSPECIFIED, - valueOf: FontStyleProto.valueOf, - enumValues: FontStyleProto.values) - ..hasRequiredFields = false; + ..e(9, _omitFieldNames ? '' : 'fontStyle', $pb.PbFieldType.OE, defaultOrMaker: FontStyleProto.FONT_STYLE_UNSPECIFIED, valueOf: FontStyleProto.valueOf, enumValues: FontStyleProto.values) + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TextStyleData clone() => TextStyleData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TextStyleData copyWith(void Function(TextStyleData) updates) => - super.copyWith((message) => updates(message as TextStyleData)) - as TextStyleData; + TextStyleData copyWith(void Function(TextStyleData) updates) => super.copyWith((message) => updates(message as TextStyleData)) as TextStyleData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TextStyleData create() => TextStyleData._(); TextStyleData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TextStyleData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static TextStyleData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TextStyleData? _defaultInstance; @$pb.TagNumber(1) ColorData get color => $_getN(0); @$pb.TagNumber(1) - set color(ColorData v) { - $_setField(1, v); - } - + set color(ColorData v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasColor() => $_has(0); @$pb.TagNumber(1) @@ -1604,10 +1415,7 @@ class TextStyleData extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get fontSize => $_getN(1); @$pb.TagNumber(2) - set fontSize($core.double v) { - $_setDouble(1, v); - } - + set fontSize($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasFontSize() => $_has(1); @$pb.TagNumber(2) @@ -1616,10 +1424,7 @@ class TextStyleData extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get fontWeight => $_getSZ(2); @$pb.TagNumber(3) - set fontWeight($core.String v) { - $_setString(2, v); - } - + set fontWeight($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasFontWeight() => $_has(2); @$pb.TagNumber(3) @@ -1628,10 +1433,7 @@ class TextStyleData extends $pb.GeneratedMessage { @$pb.TagNumber(4) TextDecorationProto get decoration => $_getN(3); @$pb.TagNumber(4) - set decoration(TextDecorationProto v) { - $_setField(4, v); - } - + set decoration(TextDecorationProto v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasDecoration() => $_has(3); @$pb.TagNumber(4) @@ -1640,10 +1442,7 @@ class TextStyleData extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.double get letterSpacing => $_getN(4); @$pb.TagNumber(5) - set letterSpacing($core.double v) { - $_setDouble(4, v); - } - + set letterSpacing($core.double v) { $_setDouble(4, v); } @$pb.TagNumber(5) $core.bool hasLetterSpacing() => $_has(4); @$pb.TagNumber(5) @@ -1652,10 +1451,7 @@ class TextStyleData extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.double get wordSpacing => $_getN(5); @$pb.TagNumber(6) - set wordSpacing($core.double v) { - $_setDouble(5, v); - } - + set wordSpacing($core.double v) { $_setDouble(5, v); } @$pb.TagNumber(6) $core.bool hasWordSpacing() => $_has(5); @$pb.TagNumber(6) @@ -1664,10 +1460,7 @@ class TextStyleData extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.double get height => $_getN(6); @$pb.TagNumber(7) - set height($core.double v) { - $_setDouble(6, v); - } - + set height($core.double v) { $_setDouble(6, v); } @$pb.TagNumber(7) $core.bool hasHeight() => $_has(6); @$pb.TagNumber(7) @@ -1676,10 +1469,7 @@ class TextStyleData extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.String get fontFamily => $_getSZ(7); @$pb.TagNumber(8) - set fontFamily($core.String v) { - $_setString(7, v); - } - + set fontFamily($core.String v) { $_setString(7, v); } @$pb.TagNumber(8) $core.bool hasFontFamily() => $_has(7); @$pb.TagNumber(8) @@ -1688,10 +1478,7 @@ class TextStyleData extends $pb.GeneratedMessage { @$pb.TagNumber(9) FontStyleProto get fontStyle => $_getN(8); @$pb.TagNumber(9) - set fontStyle(FontStyleProto v) { - $_setField(9, v); - } - + set fontStyle(FontStyleProto v) { $_setField(9, v); } @$pb.TagNumber(9) $core.bool hasFontStyle() => $_has(8); @$pb.TagNumber(9) @@ -1726,51 +1513,37 @@ class IconDataMessage extends $pb.GeneratedMessage { return $result; } IconDataMessage._() : super(); - factory IconDataMessage.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory IconDataMessage.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'IconDataMessage', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + factory IconDataMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory IconDataMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'IconDataMessage', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') ..a<$core.int>(2, _omitFieldNames ? '' : 'codePoint', $pb.PbFieldType.O3) ..aOS(3, _omitFieldNames ? '' : 'fontFamily') - ..aOM(4, _omitFieldNames ? '' : 'color', - subBuilder: ColorData.create) + ..aOM(4, _omitFieldNames ? '' : 'color', subBuilder: ColorData.create) ..a<$core.double>(5, _omitFieldNames ? '' : 'size', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') IconDataMessage clone() => IconDataMessage()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - IconDataMessage copyWith(void Function(IconDataMessage) updates) => - super.copyWith((message) => updates(message as IconDataMessage)) - as IconDataMessage; + IconDataMessage copyWith(void Function(IconDataMessage) updates) => super.copyWith((message) => updates(message as IconDataMessage)) as IconDataMessage; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static IconDataMessage create() => IconDataMessage._(); IconDataMessage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static IconDataMessage getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static IconDataMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static IconDataMessage? _defaultInstance; @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) - set name($core.String v) { - $_setString(0, v); - } - + set name($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) @@ -1779,10 +1552,7 @@ class IconDataMessage extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get codePoint => $_getIZ(1); @$pb.TagNumber(2) - set codePoint($core.int v) { - $_setSignedInt32(1, v); - } - + set codePoint($core.int v) { $_setSignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasCodePoint() => $_has(1); @$pb.TagNumber(2) @@ -1791,10 +1561,7 @@ class IconDataMessage extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get fontFamily => $_getSZ(2); @$pb.TagNumber(3) - set fontFamily($core.String v) { - $_setString(2, v); - } - + set fontFamily($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasFontFamily() => $_has(2); @$pb.TagNumber(3) @@ -1803,10 +1570,7 @@ class IconDataMessage extends $pb.GeneratedMessage { @$pb.TagNumber(4) ColorData get color => $_getN(3); @$pb.TagNumber(4) - set color(ColorData v) { - $_setField(4, v); - } - + set color(ColorData v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasColor() => $_has(3); @$pb.TagNumber(4) @@ -1817,10 +1581,7 @@ class IconDataMessage extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.double get size => $_getN(4); @$pb.TagNumber(5) - set size($core.double v) { - $_setDouble(4, v); - } - + set size($core.double v) { $_setDouble(4, v); } @$pb.TagNumber(5) $core.bool hasSize() => $_has(4); @$pb.TagNumber(5) @@ -1863,62 +1624,39 @@ class BoxDecorationData extends $pb.GeneratedMessage { return $result; } BoxDecorationData._() : super(); - factory BoxDecorationData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory BoxDecorationData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'BoxDecorationData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'color', - subBuilder: ColorData.create) - ..aOM(2, _omitFieldNames ? '' : 'borderRadius', - subBuilder: BorderRadiusData.create) - ..aOM(3, _omitFieldNames ? '' : 'border', - subBuilder: BorderData.create) - ..pc( - 4, _omitFieldNames ? '' : 'boxShadow', $pb.PbFieldType.PM, - subBuilder: BoxShadowData.create) - ..aOM(5, _omitFieldNames ? '' : 'gradient', - subBuilder: GradientData.create) - ..e(6, _omitFieldNames ? '' : 'shape', $pb.PbFieldType.OE, - defaultOrMaker: BoxShapeProto.BOX_SHAPE_UNSPECIFIED, - valueOf: BoxShapeProto.valueOf, - enumValues: BoxShapeProto.values) - ..aOM(7, _omitFieldNames ? '' : 'image', - subBuilder: DecorationImageData.create) - ..hasRequiredFields = false; + factory BoxDecorationData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BoxDecorationData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BoxDecorationData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'color', subBuilder: ColorData.create) + ..aOM(2, _omitFieldNames ? '' : 'borderRadius', subBuilder: BorderRadiusData.create) + ..aOM(3, _omitFieldNames ? '' : 'border', subBuilder: BorderData.create) + ..pc(4, _omitFieldNames ? '' : 'boxShadow', $pb.PbFieldType.PM, subBuilder: BoxShadowData.create) + ..aOM(5, _omitFieldNames ? '' : 'gradient', subBuilder: GradientData.create) + ..e(6, _omitFieldNames ? '' : 'shape', $pb.PbFieldType.OE, defaultOrMaker: BoxShapeProto.BOX_SHAPE_UNSPECIFIED, valueOf: BoxShapeProto.valueOf, enumValues: BoxShapeProto.values) + ..aOM(7, _omitFieldNames ? '' : 'image', subBuilder: DecorationImageData.create) + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BoxDecorationData clone() => BoxDecorationData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BoxDecorationData copyWith(void Function(BoxDecorationData) updates) => - super.copyWith((message) => updates(message as BoxDecorationData)) - as BoxDecorationData; + BoxDecorationData copyWith(void Function(BoxDecorationData) updates) => super.copyWith((message) => updates(message as BoxDecorationData)) as BoxDecorationData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static BoxDecorationData create() => BoxDecorationData._(); BoxDecorationData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BoxDecorationData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static BoxDecorationData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BoxDecorationData? _defaultInstance; @$pb.TagNumber(1) ColorData get color => $_getN(0); @$pb.TagNumber(1) - set color(ColorData v) { - $_setField(1, v); - } - + set color(ColorData v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasColor() => $_has(0); @$pb.TagNumber(1) @@ -1929,10 +1667,7 @@ class BoxDecorationData extends $pb.GeneratedMessage { @$pb.TagNumber(2) BorderRadiusData get borderRadius => $_getN(1); @$pb.TagNumber(2) - set borderRadius(BorderRadiusData v) { - $_setField(2, v); - } - + set borderRadius(BorderRadiusData v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasBorderRadius() => $_has(1); @$pb.TagNumber(2) @@ -1943,10 +1678,7 @@ class BoxDecorationData extends $pb.GeneratedMessage { @$pb.TagNumber(3) BorderData get border => $_getN(2); @$pb.TagNumber(3) - set border(BorderData v) { - $_setField(3, v); - } - + set border(BorderData v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasBorder() => $_has(2); @$pb.TagNumber(3) @@ -1960,10 +1692,7 @@ class BoxDecorationData extends $pb.GeneratedMessage { @$pb.TagNumber(5) GradientData get gradient => $_getN(4); @$pb.TagNumber(5) - set gradient(GradientData v) { - $_setField(5, v); - } - + set gradient(GradientData v) { $_setField(5, v); } @$pb.TagNumber(5) $core.bool hasGradient() => $_has(4); @$pb.TagNumber(5) @@ -1974,10 +1703,7 @@ class BoxDecorationData extends $pb.GeneratedMessage { @$pb.TagNumber(6) BoxShapeProto get shape => $_getN(5); @$pb.TagNumber(6) - set shape(BoxShapeProto v) { - $_setField(6, v); - } - + set shape(BoxShapeProto v) { $_setField(6, v); } @$pb.TagNumber(6) $core.bool hasShape() => $_has(5); @$pb.TagNumber(6) @@ -1986,10 +1712,7 @@ class BoxDecorationData extends $pb.GeneratedMessage { @$pb.TagNumber(7) DecorationImageData get image => $_getN(6); @$pb.TagNumber(7) - set image(DecorationImageData v) { - $_setField(7, v); - } - + set image(DecorationImageData v) { $_setField(7, v); } @$pb.TagNumber(7) $core.bool hasImage() => $_has(6); @$pb.TagNumber(7) @@ -2026,52 +1749,37 @@ class BorderRadiusData extends $pb.GeneratedMessage { return $result; } BorderRadiusData._() : super(); - factory BorderRadiusData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory BorderRadiusData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'BorderRadiusData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + factory BorderRadiusData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BorderRadiusData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BorderRadiusData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..a<$core.double>(1, _omitFieldNames ? '' : 'all', $pb.PbFieldType.OD) ..a<$core.double>(2, _omitFieldNames ? '' : 'topLeft', $pb.PbFieldType.OD) ..a<$core.double>(3, _omitFieldNames ? '' : 'topRight', $pb.PbFieldType.OD) - ..a<$core.double>( - 4, _omitFieldNames ? '' : 'bottomLeft', $pb.PbFieldType.OD) - ..a<$core.double>( - 5, _omitFieldNames ? '' : 'bottomRight', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..a<$core.double>(4, _omitFieldNames ? '' : 'bottomLeft', $pb.PbFieldType.OD) + ..a<$core.double>(5, _omitFieldNames ? '' : 'bottomRight', $pb.PbFieldType.OD) + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BorderRadiusData clone() => BorderRadiusData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BorderRadiusData copyWith(void Function(BorderRadiusData) updates) => - super.copyWith((message) => updates(message as BorderRadiusData)) - as BorderRadiusData; + BorderRadiusData copyWith(void Function(BorderRadiusData) updates) => super.copyWith((message) => updates(message as BorderRadiusData)) as BorderRadiusData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static BorderRadiusData create() => BorderRadiusData._(); BorderRadiusData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BorderRadiusData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static BorderRadiusData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BorderRadiusData? _defaultInstance; @$pb.TagNumber(1) $core.double get all => $_getN(0); @$pb.TagNumber(1) - set all($core.double v) { - $_setDouble(0, v); - } - + set all($core.double v) { $_setDouble(0, v); } @$pb.TagNumber(1) $core.bool hasAll() => $_has(0); @$pb.TagNumber(1) @@ -2081,10 +1789,7 @@ class BorderRadiusData extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get topLeft => $_getN(1); @$pb.TagNumber(2) - set topLeft($core.double v) { - $_setDouble(1, v); - } - + set topLeft($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasTopLeft() => $_has(1); @$pb.TagNumber(2) @@ -2093,10 +1798,7 @@ class BorderRadiusData extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get topRight => $_getN(2); @$pb.TagNumber(3) - set topRight($core.double v) { - $_setDouble(2, v); - } - + set topRight($core.double v) { $_setDouble(2, v); } @$pb.TagNumber(3) $core.bool hasTopRight() => $_has(2); @$pb.TagNumber(3) @@ -2105,10 +1807,7 @@ class BorderRadiusData extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.double get bottomLeft => $_getN(3); @$pb.TagNumber(4) - set bottomLeft($core.double v) { - $_setDouble(3, v); - } - + set bottomLeft($core.double v) { $_setDouble(3, v); } @$pb.TagNumber(4) $core.bool hasBottomLeft() => $_has(3); @$pb.TagNumber(4) @@ -2117,10 +1816,7 @@ class BorderRadiusData extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.double get bottomRight => $_getN(4); @$pb.TagNumber(5) - set bottomRight($core.double v) { - $_setDouble(4, v); - } - + set bottomRight($core.double v) { $_setDouble(4, v); } @$pb.TagNumber(5) $core.bool hasBottomRight() => $_has(4); @$pb.TagNumber(5) @@ -2147,52 +1843,35 @@ class BorderSideData extends $pb.GeneratedMessage { return $result; } BorderSideData._() : super(); - factory BorderSideData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory BorderSideData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'BorderSideData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'color', - subBuilder: ColorData.create) + factory BorderSideData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BorderSideData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BorderSideData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'color', subBuilder: ColorData.create) ..a<$core.double>(2, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OD) - ..e(3, _omitFieldNames ? '' : 'style', $pb.PbFieldType.OE, - defaultOrMaker: BorderStyleProto.BORDER_STYLE_UNSPECIFIED, - valueOf: BorderStyleProto.valueOf, - enumValues: BorderStyleProto.values) - ..hasRequiredFields = false; + ..e(3, _omitFieldNames ? '' : 'style', $pb.PbFieldType.OE, defaultOrMaker: BorderStyleProto.BORDER_STYLE_UNSPECIFIED, valueOf: BorderStyleProto.valueOf, enumValues: BorderStyleProto.values) + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BorderSideData clone() => BorderSideData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BorderSideData copyWith(void Function(BorderSideData) updates) => - super.copyWith((message) => updates(message as BorderSideData)) - as BorderSideData; + BorderSideData copyWith(void Function(BorderSideData) updates) => super.copyWith((message) => updates(message as BorderSideData)) as BorderSideData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static BorderSideData create() => BorderSideData._(); BorderSideData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BorderSideData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static BorderSideData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BorderSideData? _defaultInstance; @$pb.TagNumber(1) ColorData get color => $_getN(0); @$pb.TagNumber(1) - set color(ColorData v) { - $_setField(1, v); - } - + set color(ColorData v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasColor() => $_has(0); @$pb.TagNumber(1) @@ -2203,10 +1882,7 @@ class BorderSideData extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get width => $_getN(1); @$pb.TagNumber(2) - set width($core.double v) { - $_setDouble(1, v); - } - + set width($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasWidth() => $_has(1); @$pb.TagNumber(2) @@ -2215,10 +1891,7 @@ class BorderSideData extends $pb.GeneratedMessage { @$pb.TagNumber(3) BorderStyleProto get style => $_getN(2); @$pb.TagNumber(3) - set style(BorderStyleProto v) { - $_setField(3, v); - } - + set style(BorderStyleProto v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasStyle() => $_has(2); @$pb.TagNumber(3) @@ -2253,34 +1926,22 @@ class BorderData extends $pb.GeneratedMessage { return $result; } BorderData._() : super(); - factory BorderData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory BorderData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'BorderData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'top', - subBuilder: BorderSideData.create) - ..aOM(2, _omitFieldNames ? '' : 'right', - subBuilder: BorderSideData.create) - ..aOM(3, _omitFieldNames ? '' : 'bottom', - subBuilder: BorderSideData.create) - ..aOM(4, _omitFieldNames ? '' : 'left', - subBuilder: BorderSideData.create) - ..aOM(5, _omitFieldNames ? '' : 'all', - subBuilder: BorderSideData.create) - ..hasRequiredFields = false; + factory BorderData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BorderData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BorderData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'top', subBuilder: BorderSideData.create) + ..aOM(2, _omitFieldNames ? '' : 'right', subBuilder: BorderSideData.create) + ..aOM(3, _omitFieldNames ? '' : 'bottom', subBuilder: BorderSideData.create) + ..aOM(4, _omitFieldNames ? '' : 'left', subBuilder: BorderSideData.create) + ..aOM(5, _omitFieldNames ? '' : 'all', subBuilder: BorderSideData.create) + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BorderData clone() => BorderData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BorderData copyWith(void Function(BorderData) updates) => - super.copyWith((message) => updates(message as BorderData)) as BorderData; + BorderData copyWith(void Function(BorderData) updates) => super.copyWith((message) => updates(message as BorderData)) as BorderData; $pb.BuilderInfo get info_ => _i; @@ -2289,17 +1950,13 @@ class BorderData extends $pb.GeneratedMessage { BorderData createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BorderData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static BorderData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BorderData? _defaultInstance; @$pb.TagNumber(1) BorderSideData get top => $_getN(0); @$pb.TagNumber(1) - set top(BorderSideData v) { - $_setField(1, v); - } - + set top(BorderSideData v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasTop() => $_has(0); @$pb.TagNumber(1) @@ -2310,10 +1967,7 @@ class BorderData extends $pb.GeneratedMessage { @$pb.TagNumber(2) BorderSideData get right => $_getN(1); @$pb.TagNumber(2) - set right(BorderSideData v) { - $_setField(2, v); - } - + set right(BorderSideData v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasRight() => $_has(1); @$pb.TagNumber(2) @@ -2324,10 +1978,7 @@ class BorderData extends $pb.GeneratedMessage { @$pb.TagNumber(3) BorderSideData get bottom => $_getN(2); @$pb.TagNumber(3) - set bottom(BorderSideData v) { - $_setField(3, v); - } - + set bottom(BorderSideData v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasBottom() => $_has(2); @$pb.TagNumber(3) @@ -2338,10 +1989,7 @@ class BorderData extends $pb.GeneratedMessage { @$pb.TagNumber(4) BorderSideData get left => $_getN(3); @$pb.TagNumber(4) - set left(BorderSideData v) { - $_setField(4, v); - } - + set left(BorderSideData v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasLeft() => $_has(3); @$pb.TagNumber(4) @@ -2352,10 +2000,7 @@ class BorderData extends $pb.GeneratedMessage { @$pb.TagNumber(5) BorderSideData get all => $_getN(4); @$pb.TagNumber(5) - set all(BorderSideData v) { - $_setField(5, v); - } - + set all(BorderSideData v) { $_setField(5, v); } @$pb.TagNumber(5) $core.bool hasAll() => $_has(4); @$pb.TagNumber(5) @@ -2392,53 +2037,37 @@ class BoxShadowData extends $pb.GeneratedMessage { return $result; } BoxShadowData._() : super(); - factory BoxShadowData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory BoxShadowData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'BoxShadowData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'color', - subBuilder: ColorData.create) + factory BoxShadowData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BoxShadowData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BoxShadowData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'color', subBuilder: ColorData.create) ..a<$core.double>(2, _omitFieldNames ? '' : 'offsetX', $pb.PbFieldType.OD) ..a<$core.double>(3, _omitFieldNames ? '' : 'offsetY', $pb.PbFieldType.OD) - ..a<$core.double>( - 4, _omitFieldNames ? '' : 'blurRadius', $pb.PbFieldType.OD) - ..a<$core.double>( - 5, _omitFieldNames ? '' : 'spreadRadius', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..a<$core.double>(4, _omitFieldNames ? '' : 'blurRadius', $pb.PbFieldType.OD) + ..a<$core.double>(5, _omitFieldNames ? '' : 'spreadRadius', $pb.PbFieldType.OD) + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BoxShadowData clone() => BoxShadowData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BoxShadowData copyWith(void Function(BoxShadowData) updates) => - super.copyWith((message) => updates(message as BoxShadowData)) - as BoxShadowData; + BoxShadowData copyWith(void Function(BoxShadowData) updates) => super.copyWith((message) => updates(message as BoxShadowData)) as BoxShadowData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static BoxShadowData create() => BoxShadowData._(); BoxShadowData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BoxShadowData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static BoxShadowData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BoxShadowData? _defaultInstance; @$pb.TagNumber(1) ColorData get color => $_getN(0); @$pb.TagNumber(1) - set color(ColorData v) { - $_setField(1, v); - } - + set color(ColorData v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasColor() => $_has(0); @$pb.TagNumber(1) @@ -2449,10 +2078,7 @@ class BoxShadowData extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get offsetX => $_getN(1); @$pb.TagNumber(2) - set offsetX($core.double v) { - $_setDouble(1, v); - } - + set offsetX($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasOffsetX() => $_has(1); @$pb.TagNumber(2) @@ -2461,10 +2087,7 @@ class BoxShadowData extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get offsetY => $_getN(2); @$pb.TagNumber(3) - set offsetY($core.double v) { - $_setDouble(2, v); - } - + set offsetY($core.double v) { $_setDouble(2, v); } @$pb.TagNumber(3) $core.bool hasOffsetY() => $_has(2); @$pb.TagNumber(3) @@ -2473,10 +2096,7 @@ class BoxShadowData extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.double get blurRadius => $_getN(3); @$pb.TagNumber(4) - set blurRadius($core.double v) { - $_setDouble(3, v); - } - + set blurRadius($core.double v) { $_setDouble(3, v); } @$pb.TagNumber(4) $core.bool hasBlurRadius() => $_has(3); @$pb.TagNumber(4) @@ -2485,10 +2105,7 @@ class BoxShadowData extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.double get spreadRadius => $_getN(4); @$pb.TagNumber(5) - set spreadRadius($core.double v) { - $_setDouble(4, v); - } - + set spreadRadius($core.double v) { $_setDouble(4, v); } @$pb.TagNumber(5) $core.bool hasSpreadRadius() => $_has(4); @$pb.TagNumber(5) @@ -2539,63 +2156,41 @@ class GradientData extends $pb.GeneratedMessage { return $result; } GradientData._() : super(); - factory GradientData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory GradientData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'GradientData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) - ..e( - 1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, - defaultOrMaker: GradientData_GradientType.GRADIENT_TYPE_UNSPECIFIED, - valueOf: GradientData_GradientType.valueOf, - enumValues: GradientData_GradientType.values) - ..pc(2, _omitFieldNames ? '' : 'colors', $pb.PbFieldType.PM, - subBuilder: ColorData.create) + factory GradientData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GradientData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GradientData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: GradientData_GradientType.GRADIENT_TYPE_UNSPECIFIED, valueOf: GradientData_GradientType.valueOf, enumValues: GradientData_GradientType.values) + ..pc(2, _omitFieldNames ? '' : 'colors', $pb.PbFieldType.PM, subBuilder: ColorData.create) ..p<$core.double>(3, _omitFieldNames ? '' : 'stops', $pb.PbFieldType.KD) - ..aOM(4, _omitFieldNames ? '' : 'begin', - subBuilder: AlignmentData.create) - ..aOM(5, _omitFieldNames ? '' : 'end', - subBuilder: AlignmentData.create) - ..aOM(6, _omitFieldNames ? '' : 'center', - subBuilder: AlignmentData.create) + ..aOM(4, _omitFieldNames ? '' : 'begin', subBuilder: AlignmentData.create) + ..aOM(5, _omitFieldNames ? '' : 'end', subBuilder: AlignmentData.create) + ..aOM(6, _omitFieldNames ? '' : 'center', subBuilder: AlignmentData.create) ..a<$core.double>(7, _omitFieldNames ? '' : 'radius', $pb.PbFieldType.OD) - ..a<$core.double>( - 8, _omitFieldNames ? '' : 'startAngle', $pb.PbFieldType.OD) + ..a<$core.double>(8, _omitFieldNames ? '' : 'startAngle', $pb.PbFieldType.OD) ..a<$core.double>(9, _omitFieldNames ? '' : 'endAngle', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') GradientData clone() => GradientData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - GradientData copyWith(void Function(GradientData) updates) => - super.copyWith((message) => updates(message as GradientData)) - as GradientData; + GradientData copyWith(void Function(GradientData) updates) => super.copyWith((message) => updates(message as GradientData)) as GradientData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GradientData create() => GradientData._(); GradientData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static GradientData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static GradientData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GradientData? _defaultInstance; @$pb.TagNumber(1) GradientData_GradientType get type => $_getN(0); @$pb.TagNumber(1) - set type(GradientData_GradientType v) { - $_setField(1, v); - } - + set type(GradientData_GradientType v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) @@ -2610,10 +2205,7 @@ class GradientData extends $pb.GeneratedMessage { @$pb.TagNumber(4) AlignmentData get begin => $_getN(3); @$pb.TagNumber(4) - set begin(AlignmentData v) { - $_setField(4, v); - } - + set begin(AlignmentData v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasBegin() => $_has(3); @$pb.TagNumber(4) @@ -2624,10 +2216,7 @@ class GradientData extends $pb.GeneratedMessage { @$pb.TagNumber(5) AlignmentData get end => $_getN(4); @$pb.TagNumber(5) - set end(AlignmentData v) { - $_setField(5, v); - } - + set end(AlignmentData v) { $_setField(5, v); } @$pb.TagNumber(5) $core.bool hasEnd() => $_has(4); @$pb.TagNumber(5) @@ -2638,10 +2227,7 @@ class GradientData extends $pb.GeneratedMessage { @$pb.TagNumber(6) AlignmentData get center => $_getN(5); @$pb.TagNumber(6) - set center(AlignmentData v) { - $_setField(6, v); - } - + set center(AlignmentData v) { $_setField(6, v); } @$pb.TagNumber(6) $core.bool hasCenter() => $_has(5); @$pb.TagNumber(6) @@ -2652,10 +2238,7 @@ class GradientData extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.double get radius => $_getN(6); @$pb.TagNumber(7) - set radius($core.double v) { - $_setDouble(6, v); - } - + set radius($core.double v) { $_setDouble(6, v); } @$pb.TagNumber(7) $core.bool hasRadius() => $_has(6); @$pb.TagNumber(7) @@ -2664,10 +2247,7 @@ class GradientData extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.double get startAngle => $_getN(7); @$pb.TagNumber(8) - set startAngle($core.double v) { - $_setDouble(7, v); - } - + set startAngle($core.double v) { $_setDouble(7, v); } @$pb.TagNumber(8) $core.bool hasStartAngle() => $_has(7); @$pb.TagNumber(8) @@ -2676,17 +2256,18 @@ class GradientData extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.double get endAngle => $_getN(8); @$pb.TagNumber(9) - set endAngle($core.double v) { - $_setDouble(8, v); - } - + set endAngle($core.double v) { $_setDouble(8, v); } @$pb.TagNumber(9) $core.bool hasEndAngle() => $_has(8); @$pb.TagNumber(9) void clearEndAngle() => $_clearField(9); } -enum AlignmentData_AlignmentType { predefined, xy, notSet } +enum AlignmentData_AlignmentType { + predefined, + xy, + notSet +} /// Message for Alignment (used in Gradient, DecorationImage) class AlignmentData extends $pb.GeneratedMessage { @@ -2704,64 +2285,43 @@ class AlignmentData extends $pb.GeneratedMessage { return $result; } AlignmentData._() : super(); - factory AlignmentData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory AlignmentData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, AlignmentData_AlignmentType> - _AlignmentData_AlignmentTypeByTag = { - 1: AlignmentData_AlignmentType.predefined, - 2: AlignmentData_AlignmentType.xy, - 0: AlignmentData_AlignmentType.notSet + factory AlignmentData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AlignmentData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, AlignmentData_AlignmentType> _AlignmentData_AlignmentTypeByTag = { + 1 : AlignmentData_AlignmentType.predefined, + 2 : AlignmentData_AlignmentType.xy, + 0 : AlignmentData_AlignmentType.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'AlignmentData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AlignmentData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..oo(0, [1, 2]) - ..e( - 1, _omitFieldNames ? '' : 'predefined', $pb.PbFieldType.OE, - defaultOrMaker: - AlignmentData_PredefinedAlignment.PREDEFINED_ALIGNMENT_UNSPECIFIED, - valueOf: AlignmentData_PredefinedAlignment.valueOf, - enumValues: AlignmentData_PredefinedAlignment.values) - ..aOM(2, _omitFieldNames ? '' : 'xy', - subBuilder: XYAlignment.create) - ..hasRequiredFields = false; + ..e(1, _omitFieldNames ? '' : 'predefined', $pb.PbFieldType.OE, defaultOrMaker: AlignmentData_PredefinedAlignment.PREDEFINED_ALIGNMENT_UNSPECIFIED, valueOf: AlignmentData_PredefinedAlignment.valueOf, enumValues: AlignmentData_PredefinedAlignment.values) + ..aOM(2, _omitFieldNames ? '' : 'xy', subBuilder: XYAlignment.create) + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') AlignmentData clone() => AlignmentData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - AlignmentData copyWith(void Function(AlignmentData) updates) => - super.copyWith((message) => updates(message as AlignmentData)) - as AlignmentData; + AlignmentData copyWith(void Function(AlignmentData) updates) => super.copyWith((message) => updates(message as AlignmentData)) as AlignmentData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static AlignmentData create() => AlignmentData._(); AlignmentData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static AlignmentData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static AlignmentData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static AlignmentData? _defaultInstance; - AlignmentData_AlignmentType whichAlignmentType() => - _AlignmentData_AlignmentTypeByTag[$_whichOneof(0)]!; + AlignmentData_AlignmentType whichAlignmentType() => _AlignmentData_AlignmentTypeByTag[$_whichOneof(0)]!; void clearAlignmentType() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) AlignmentData_PredefinedAlignment get predefined => $_getN(0); @$pb.TagNumber(1) - set predefined(AlignmentData_PredefinedAlignment v) { - $_setField(1, v); - } - + set predefined(AlignmentData_PredefinedAlignment v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasPredefined() => $_has(0); @$pb.TagNumber(1) @@ -2770,10 +2330,7 @@ class AlignmentData extends $pb.GeneratedMessage { @$pb.TagNumber(2) XYAlignment get xy => $_getN(1); @$pb.TagNumber(2) - set xy(XYAlignment v) { - $_setField(2, v); - } - + set xy(XYAlignment v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasXy() => $_has(1); @$pb.TagNumber(2) @@ -2797,27 +2354,19 @@ class XYAlignment extends $pb.GeneratedMessage { return $result; } XYAlignment._() : super(); - factory XYAlignment.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory XYAlignment.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'XYAlignment', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + factory XYAlignment.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory XYAlignment.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'XYAlignment', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..a<$core.double>(1, _omitFieldNames ? '' : 'x', $pb.PbFieldType.OD) ..a<$core.double>(2, _omitFieldNames ? '' : 'y', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') XYAlignment clone() => XYAlignment()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - XYAlignment copyWith(void Function(XYAlignment) updates) => - super.copyWith((message) => updates(message as XYAlignment)) - as XYAlignment; + XYAlignment copyWith(void Function(XYAlignment) updates) => super.copyWith((message) => updates(message as XYAlignment)) as XYAlignment; $pb.BuilderInfo get info_ => _i; @@ -2826,17 +2375,13 @@ class XYAlignment extends $pb.GeneratedMessage { XYAlignment createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static XYAlignment getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static XYAlignment getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static XYAlignment? _defaultInstance; @$pb.TagNumber(1) $core.double get x => $_getN(0); @$pb.TagNumber(1) - set x($core.double v) { - $_setDouble(0, v); - } - + set x($core.double v) { $_setDouble(0, v); } @$pb.TagNumber(1) $core.bool hasX() => $_has(0); @$pb.TagNumber(1) @@ -2845,10 +2390,7 @@ class XYAlignment extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get y => $_getN(1); @$pb.TagNumber(2) - set y($core.double v) { - $_setDouble(1, v); - } - + set y($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasY() => $_has(1); @$pb.TagNumber(2) @@ -2903,67 +2445,42 @@ class DecorationImageData extends $pb.GeneratedMessage { return $result; } DecorationImageData._() : super(); - factory DecorationImageData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory DecorationImageData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'DecorationImageData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + factory DecorationImageData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DecorationImageData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DecorationImageData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'src') - ..e(2, _omitFieldNames ? '' : 'fit', $pb.PbFieldType.OE, - defaultOrMaker: BoxFitProto.BOX_FIT_UNSPECIFIED, - valueOf: BoxFitProto.valueOf, - enumValues: BoxFitProto.values) - ..aOM(3, _omitFieldNames ? '' : 'alignment', - subBuilder: AlignmentData.create) - ..e( - 4, _omitFieldNames ? '' : 'repeat', $pb.PbFieldType.OE, - defaultOrMaker: ImageRepeatProto.IMAGE_REPEAT_UNSPECIFIED, - valueOf: ImageRepeatProto.valueOf, - enumValues: ImageRepeatProto.values) + ..e(2, _omitFieldNames ? '' : 'fit', $pb.PbFieldType.OE, defaultOrMaker: BoxFitProto.BOX_FIT_UNSPECIFIED, valueOf: BoxFitProto.valueOf, enumValues: BoxFitProto.values) + ..aOM(3, _omitFieldNames ? '' : 'alignment', subBuilder: AlignmentData.create) + ..e(4, _omitFieldNames ? '' : 'repeat', $pb.PbFieldType.OE, defaultOrMaker: ImageRepeatProto.IMAGE_REPEAT_UNSPECIFIED, valueOf: ImageRepeatProto.valueOf, enumValues: ImageRepeatProto.values) ..aOB(5, _omitFieldNames ? '' : 'matchTextDirection') ..a<$core.double>(6, _omitFieldNames ? '' : 'scale', $pb.PbFieldType.OD) ..a<$core.double>(7, _omitFieldNames ? '' : 'opacity', $pb.PbFieldType.OD) - ..e( - 8, _omitFieldNames ? '' : 'filterQuality', $pb.PbFieldType.OE, - defaultOrMaker: FilterQualityProto.FILTER_QUALITY_UNSPECIFIED, - valueOf: FilterQualityProto.valueOf, - enumValues: FilterQualityProto.values) + ..e(8, _omitFieldNames ? '' : 'filterQuality', $pb.PbFieldType.OE, defaultOrMaker: FilterQualityProto.FILTER_QUALITY_UNSPECIFIED, valueOf: FilterQualityProto.valueOf, enumValues: FilterQualityProto.values) ..aOB(9, _omitFieldNames ? '' : 'invertColors') ..aOB(10, _omitFieldNames ? '' : 'isAntiAlias') - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DecorationImageData clone() => DecorationImageData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DecorationImageData copyWith(void Function(DecorationImageData) updates) => - super.copyWith((message) => updates(message as DecorationImageData)) - as DecorationImageData; + DecorationImageData copyWith(void Function(DecorationImageData) updates) => super.copyWith((message) => updates(message as DecorationImageData)) as DecorationImageData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DecorationImageData create() => DecorationImageData._(); DecorationImageData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static DecorationImageData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static DecorationImageData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DecorationImageData? _defaultInstance; @$pb.TagNumber(1) $core.String get src => $_getSZ(0); @$pb.TagNumber(1) - set src($core.String v) { - $_setString(0, v); - } - + set src($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSrc() => $_has(0); @$pb.TagNumber(1) @@ -2972,10 +2489,7 @@ class DecorationImageData extends $pb.GeneratedMessage { @$pb.TagNumber(2) BoxFitProto get fit => $_getN(1); @$pb.TagNumber(2) - set fit(BoxFitProto v) { - $_setField(2, v); - } - + set fit(BoxFitProto v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasFit() => $_has(1); @$pb.TagNumber(2) @@ -2984,10 +2498,7 @@ class DecorationImageData extends $pb.GeneratedMessage { @$pb.TagNumber(3) AlignmentData get alignment => $_getN(2); @$pb.TagNumber(3) - set alignment(AlignmentData v) { - $_setField(3, v); - } - + set alignment(AlignmentData v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasAlignment() => $_has(2); @$pb.TagNumber(3) @@ -2998,10 +2509,7 @@ class DecorationImageData extends $pb.GeneratedMessage { @$pb.TagNumber(4) ImageRepeatProto get repeat => $_getN(3); @$pb.TagNumber(4) - set repeat(ImageRepeatProto v) { - $_setField(4, v); - } - + set repeat(ImageRepeatProto v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasRepeat() => $_has(3); @$pb.TagNumber(4) @@ -3010,10 +2518,7 @@ class DecorationImageData extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.bool get matchTextDirection => $_getBF(4); @$pb.TagNumber(5) - set matchTextDirection($core.bool v) { - $_setBool(4, v); - } - + set matchTextDirection($core.bool v) { $_setBool(4, v); } @$pb.TagNumber(5) $core.bool hasMatchTextDirection() => $_has(4); @$pb.TagNumber(5) @@ -3022,10 +2527,7 @@ class DecorationImageData extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.double get scale => $_getN(5); @$pb.TagNumber(6) - set scale($core.double v) { - $_setDouble(5, v); - } - + set scale($core.double v) { $_setDouble(5, v); } @$pb.TagNumber(6) $core.bool hasScale() => $_has(5); @$pb.TagNumber(6) @@ -3034,10 +2536,7 @@ class DecorationImageData extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.double get opacity => $_getN(6); @$pb.TagNumber(7) - set opacity($core.double v) { - $_setDouble(6, v); - } - + set opacity($core.double v) { $_setDouble(6, v); } @$pb.TagNumber(7) $core.bool hasOpacity() => $_has(6); @$pb.TagNumber(7) @@ -3046,10 +2545,7 @@ class DecorationImageData extends $pb.GeneratedMessage { @$pb.TagNumber(8) FilterQualityProto get filterQuality => $_getN(7); @$pb.TagNumber(8) - set filterQuality(FilterQualityProto v) { - $_setField(8, v); - } - + set filterQuality(FilterQualityProto v) { $_setField(8, v); } @$pb.TagNumber(8) $core.bool hasFilterQuality() => $_has(7); @$pb.TagNumber(8) @@ -3058,10 +2554,7 @@ class DecorationImageData extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.bool get invertColors => $_getBF(8); @$pb.TagNumber(9) - set invertColors($core.bool v) { - $_setBool(8, v); - } - + set invertColors($core.bool v) { $_setBool(8, v); } @$pb.TagNumber(9) $core.bool hasInvertColors() => $_has(8); @$pb.TagNumber(9) @@ -3070,10 +2563,7 @@ class DecorationImageData extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.bool get isAntiAlias => $_getBF(9); @$pb.TagNumber(10) - set isAntiAlias($core.bool v) { - $_setBool(9, v); - } - + set isAntiAlias($core.bool v) { $_setBool(9, v); } @$pb.TagNumber(10) $core.bool hasIsAntiAlias() => $_has(9); @$pb.TagNumber(10) @@ -3104,49 +2594,36 @@ class BoxConstraintsData extends $pb.GeneratedMessage { return $result; } BoxConstraintsData._() : super(); - factory BoxConstraintsData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory BoxConstraintsData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'BoxConstraintsData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + factory BoxConstraintsData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory BoxConstraintsData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BoxConstraintsData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..a<$core.double>(1, _omitFieldNames ? '' : 'minWidth', $pb.PbFieldType.OD) ..a<$core.double>(2, _omitFieldNames ? '' : 'maxWidth', $pb.PbFieldType.OD) ..a<$core.double>(3, _omitFieldNames ? '' : 'minHeight', $pb.PbFieldType.OD) ..a<$core.double>(4, _omitFieldNames ? '' : 'maxHeight', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') BoxConstraintsData clone() => BoxConstraintsData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BoxConstraintsData copyWith(void Function(BoxConstraintsData) updates) => - super.copyWith((message) => updates(message as BoxConstraintsData)) - as BoxConstraintsData; + BoxConstraintsData copyWith(void Function(BoxConstraintsData) updates) => super.copyWith((message) => updates(message as BoxConstraintsData)) as BoxConstraintsData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static BoxConstraintsData create() => BoxConstraintsData._(); BoxConstraintsData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static BoxConstraintsData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static BoxConstraintsData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BoxConstraintsData? _defaultInstance; @$pb.TagNumber(1) $core.double get minWidth => $_getN(0); @$pb.TagNumber(1) - set minWidth($core.double v) { - $_setDouble(0, v); - } - + set minWidth($core.double v) { $_setDouble(0, v); } @$pb.TagNumber(1) $core.bool hasMinWidth() => $_has(0); @$pb.TagNumber(1) @@ -3155,10 +2632,7 @@ class BoxConstraintsData extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get maxWidth => $_getN(1); @$pb.TagNumber(2) - set maxWidth($core.double v) { - $_setDouble(1, v); - } - + set maxWidth($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasMaxWidth() => $_has(1); @$pb.TagNumber(2) @@ -3167,10 +2641,7 @@ class BoxConstraintsData extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get minHeight => $_getN(2); @$pb.TagNumber(3) - set minHeight($core.double v) { - $_setDouble(2, v); - } - + set minHeight($core.double v) { $_setDouble(2, v); } @$pb.TagNumber(3) $core.bool hasMinHeight() => $_has(2); @$pb.TagNumber(3) @@ -3179,10 +2650,7 @@ class BoxConstraintsData extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.double get maxHeight => $_getN(3); @$pb.TagNumber(4) - set maxHeight($core.double v) { - $_setDouble(3, v); - } - + set maxHeight($core.double v) { $_setDouble(3, v); } @$pb.TagNumber(4) $core.bool hasMaxHeight() => $_has(3); @$pb.TagNumber(4) @@ -3245,66 +2713,44 @@ class TransformData extends $pb.GeneratedMessage { return $result; } TransformData._() : super(); - factory TransformData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory TransformData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'TransformData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) - ..e( - 1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, - defaultOrMaker: TransformData_TransformType.TRANSFORM_TYPE_UNSPECIFIED, - valueOf: TransformData_TransformType.valueOf, - enumValues: TransformData_TransformType.values) - ..p<$core.double>( - 2, _omitFieldNames ? '' : 'matrixValues', $pb.PbFieldType.KD) - ..a<$core.double>( - 3, _omitFieldNames ? '' : 'translateX', $pb.PbFieldType.OD) - ..a<$core.double>( - 4, _omitFieldNames ? '' : 'translateY', $pb.PbFieldType.OD) - ..a<$core.double>( - 5, _omitFieldNames ? '' : 'translateZ', $pb.PbFieldType.OD) - ..a<$core.double>( - 6, _omitFieldNames ? '' : 'rotationAngle', $pb.PbFieldType.OD) + factory TransformData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory TransformData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TransformData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: TransformData_TransformType.TRANSFORM_TYPE_UNSPECIFIED, valueOf: TransformData_TransformType.valueOf, enumValues: TransformData_TransformType.values) + ..p<$core.double>(2, _omitFieldNames ? '' : 'matrixValues', $pb.PbFieldType.KD) + ..a<$core.double>(3, _omitFieldNames ? '' : 'translateX', $pb.PbFieldType.OD) + ..a<$core.double>(4, _omitFieldNames ? '' : 'translateY', $pb.PbFieldType.OD) + ..a<$core.double>(5, _omitFieldNames ? '' : 'translateZ', $pb.PbFieldType.OD) + ..a<$core.double>(6, _omitFieldNames ? '' : 'rotationAngle', $pb.PbFieldType.OD) ..a<$core.double>(7, _omitFieldNames ? '' : 'rotationX', $pb.PbFieldType.OD) ..a<$core.double>(8, _omitFieldNames ? '' : 'rotationY', $pb.PbFieldType.OD) ..a<$core.double>(9, _omitFieldNames ? '' : 'rotationZ', $pb.PbFieldType.OD) ..a<$core.double>(10, _omitFieldNames ? '' : 'scaleX', $pb.PbFieldType.OD) ..a<$core.double>(11, _omitFieldNames ? '' : 'scaleY', $pb.PbFieldType.OD) ..a<$core.double>(12, _omitFieldNames ? '' : 'scaleZ', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TransformData clone() => TransformData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TransformData copyWith(void Function(TransformData) updates) => - super.copyWith((message) => updates(message as TransformData)) - as TransformData; + TransformData copyWith(void Function(TransformData) updates) => super.copyWith((message) => updates(message as TransformData)) as TransformData; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TransformData create() => TransformData._(); TransformData createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TransformData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static TransformData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TransformData? _defaultInstance; @$pb.TagNumber(1) TransformData_TransformType get type => $_getN(0); @$pb.TagNumber(1) - set type(TransformData_TransformType v) { - $_setField(1, v); - } - + set type(TransformData_TransformType v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) @@ -3318,10 +2764,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get translateX => $_getN(2); @$pb.TagNumber(3) - set translateX($core.double v) { - $_setDouble(2, v); - } - + set translateX($core.double v) { $_setDouble(2, v); } @$pb.TagNumber(3) $core.bool hasTranslateX() => $_has(2); @$pb.TagNumber(3) @@ -3330,10 +2773,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.double get translateY => $_getN(3); @$pb.TagNumber(4) - set translateY($core.double v) { - $_setDouble(3, v); - } - + set translateY($core.double v) { $_setDouble(3, v); } @$pb.TagNumber(4) $core.bool hasTranslateY() => $_has(3); @$pb.TagNumber(4) @@ -3342,10 +2782,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.double get translateZ => $_getN(4); @$pb.TagNumber(5) - set translateZ($core.double v) { - $_setDouble(4, v); - } - + set translateZ($core.double v) { $_setDouble(4, v); } @$pb.TagNumber(5) $core.bool hasTranslateZ() => $_has(4); @$pb.TagNumber(5) @@ -3355,10 +2792,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.double get rotationAngle => $_getN(5); @$pb.TagNumber(6) - set rotationAngle($core.double v) { - $_setDouble(5, v); - } - + set rotationAngle($core.double v) { $_setDouble(5, v); } @$pb.TagNumber(6) $core.bool hasRotationAngle() => $_has(5); @$pb.TagNumber(6) @@ -3367,10 +2801,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.double get rotationX => $_getN(6); @$pb.TagNumber(7) - set rotationX($core.double v) { - $_setDouble(6, v); - } - + set rotationX($core.double v) { $_setDouble(6, v); } @$pb.TagNumber(7) $core.bool hasRotationX() => $_has(6); @$pb.TagNumber(7) @@ -3379,10 +2810,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.double get rotationY => $_getN(7); @$pb.TagNumber(8) - set rotationY($core.double v) { - $_setDouble(7, v); - } - + set rotationY($core.double v) { $_setDouble(7, v); } @$pb.TagNumber(8) $core.bool hasRotationY() => $_has(7); @$pb.TagNumber(8) @@ -3391,10 +2819,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.double get rotationZ => $_getN(8); @$pb.TagNumber(9) - set rotationZ($core.double v) { - $_setDouble(8, v); - } - + set rotationZ($core.double v) { $_setDouble(8, v); } @$pb.TagNumber(9) $core.bool hasRotationZ() => $_has(8); @$pb.TagNumber(9) @@ -3404,10 +2829,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.double get scaleX => $_getN(9); @$pb.TagNumber(10) - set scaleX($core.double v) { - $_setDouble(9, v); - } - + set scaleX($core.double v) { $_setDouble(9, v); } @$pb.TagNumber(10) $core.bool hasScaleX() => $_has(9); @$pb.TagNumber(10) @@ -3416,10 +2838,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.double get scaleY => $_getN(10); @$pb.TagNumber(11) - set scaleY($core.double v) { - $_setDouble(10, v); - } - + set scaleY($core.double v) { $_setDouble(10, v); } @$pb.TagNumber(11) $core.bool hasScaleY() => $_has(10); @$pb.TagNumber(11) @@ -3428,10 +2847,7 @@ class TransformData extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.double get scaleZ => $_getN(11); @$pb.TagNumber(12) - set scaleZ($core.double v) { - $_setDouble(11, v); - } - + set scaleZ($core.double v) { $_setDouble(11, v); } @$pb.TagNumber(12) $core.bool hasScaleZ() => $_has(11); @$pb.TagNumber(12) @@ -3462,28 +2878,21 @@ class RectData extends $pb.GeneratedMessage { return $result; } RectData._() : super(); - factory RectData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory RectData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'RectData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + factory RectData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RectData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RectData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..a<$core.double>(1, _omitFieldNames ? '' : 'left', $pb.PbFieldType.OD) ..a<$core.double>(2, _omitFieldNames ? '' : 'top', $pb.PbFieldType.OD) ..a<$core.double>(3, _omitFieldNames ? '' : 'right', $pb.PbFieldType.OD) ..a<$core.double>(4, _omitFieldNames ? '' : 'bottom', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RectData clone() => RectData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RectData copyWith(void Function(RectData) updates) => - super.copyWith((message) => updates(message as RectData)) as RectData; + RectData copyWith(void Function(RectData) updates) => super.copyWith((message) => updates(message as RectData)) as RectData; $pb.BuilderInfo get info_ => _i; @@ -3492,17 +2901,13 @@ class RectData extends $pb.GeneratedMessage { RectData createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RectData getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RectData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RectData? _defaultInstance; @$pb.TagNumber(1) $core.double get left => $_getN(0); @$pb.TagNumber(1) - set left($core.double v) { - $_setDouble(0, v); - } - + set left($core.double v) { $_setDouble(0, v); } @$pb.TagNumber(1) $core.bool hasLeft() => $_has(0); @$pb.TagNumber(1) @@ -3511,10 +2916,7 @@ class RectData extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get top => $_getN(1); @$pb.TagNumber(2) - set top($core.double v) { - $_setDouble(1, v); - } - + set top($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasTop() => $_has(1); @$pb.TagNumber(2) @@ -3523,10 +2925,7 @@ class RectData extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get right => $_getN(2); @$pb.TagNumber(3) - set right($core.double v) { - $_setDouble(2, v); - } - + set right($core.double v) { $_setDouble(2, v); } @$pb.TagNumber(3) $core.bool hasRight() => $_has(2); @$pb.TagNumber(3) @@ -3535,10 +2934,7 @@ class RectData extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.double get bottom => $_getN(3); @$pb.TagNumber(4) - set bottom($core.double v) { - $_setDouble(3, v); - } - + set bottom($core.double v) { $_setDouble(3, v); } @$pb.TagNumber(4) $core.bool hasBottom() => $_has(3); @$pb.TagNumber(4) @@ -3569,30 +2965,21 @@ class ShadowData extends $pb.GeneratedMessage { return $result; } ShadowData._() : super(); - factory ShadowData.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ShadowData.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ShadowData', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'color', - subBuilder: ColorData.create) + factory ShadowData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ShadowData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ShadowData', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'color', subBuilder: ColorData.create) ..a<$core.double>(2, _omitFieldNames ? '' : 'offsetX', $pb.PbFieldType.OD) ..a<$core.double>(3, _omitFieldNames ? '' : 'offsetY', $pb.PbFieldType.OD) - ..a<$core.double>( - 4, _omitFieldNames ? '' : 'blurRadius', $pb.PbFieldType.OD) - ..hasRequiredFields = false; + ..a<$core.double>(4, _omitFieldNames ? '' : 'blurRadius', $pb.PbFieldType.OD) + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ShadowData clone() => ShadowData()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ShadowData copyWith(void Function(ShadowData) updates) => - super.copyWith((message) => updates(message as ShadowData)) as ShadowData; + ShadowData copyWith(void Function(ShadowData) updates) => super.copyWith((message) => updates(message as ShadowData)) as ShadowData; $pb.BuilderInfo get info_ => _i; @@ -3601,17 +2988,13 @@ class ShadowData extends $pb.GeneratedMessage { ShadowData createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ShadowData getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ShadowData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ShadowData? _defaultInstance; @$pb.TagNumber(1) ColorData get color => $_getN(0); @$pb.TagNumber(1) - set color(ColorData v) { - $_setField(1, v); - } - + set color(ColorData v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasColor() => $_has(0); @$pb.TagNumber(1) @@ -3622,10 +3005,7 @@ class ShadowData extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get offsetX => $_getN(1); @$pb.TagNumber(2) - set offsetX($core.double v) { - $_setDouble(1, v); - } - + set offsetX($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasOffsetX() => $_has(1); @$pb.TagNumber(2) @@ -3634,10 +3014,7 @@ class ShadowData extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get offsetY => $_getN(2); @$pb.TagNumber(3) - set offsetY($core.double v) { - $_setDouble(2, v); - } - + set offsetY($core.double v) { $_setDouble(2, v); } @$pb.TagNumber(3) $core.bool hasOffsetY() => $_has(2); @$pb.TagNumber(3) @@ -3646,18 +3023,15 @@ class ShadowData extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.double get blurRadius => $_getN(3); @$pb.TagNumber(4) - set blurRadius($core.double v) { - $_setDouble(3, v); - } - + set blurRadius($core.double v) { $_setDouble(3, v); } @$pb.TagNumber(4) $core.bool hasBlurRadius() => $_has(3); @$pb.TagNumber(4) void clearBlurRadius() => $_clearField(4); } -class SduiRequest extends $pb.GeneratedMessage { - factory SduiRequest({ +class GlimpseRequest extends $pb.GeneratedMessage { + factory GlimpseRequest({ $core.String? screenId, }) { final $result = create(); @@ -3666,52 +3040,40 @@ class SduiRequest extends $pb.GeneratedMessage { } return $result; } - SduiRequest._() : super(); - factory SduiRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SduiRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'SduiRequest', - package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_sdui'), - createEmptyInstance: create) + GlimpseRequest._() : super(); + factory GlimpseRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GlimpseRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GlimpseRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'flutter_glimpse'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'screenId') - ..hasRequiredFields = false; + ..hasRequiredFields = false + ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SduiRequest clone() => SduiRequest()..mergeFromMessage(this); + GlimpseRequest clone() => GlimpseRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SduiRequest copyWith(void Function(SduiRequest) updates) => - super.copyWith((message) => updates(message as SduiRequest)) - as SduiRequest; + GlimpseRequest copyWith(void Function(GlimpseRequest) updates) => super.copyWith((message) => updates(message as GlimpseRequest)) as GlimpseRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static SduiRequest create() => SduiRequest._(); - SduiRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static GlimpseRequest create() => GlimpseRequest._(); + GlimpseRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SduiRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static SduiRequest? _defaultInstance; + static GlimpseRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GlimpseRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get screenId => $_getSZ(0); @$pb.TagNumber(1) - set screenId($core.String v) { - $_setString(0, v); - } - + set screenId($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasScreenId() => $_has(0); @$pb.TagNumber(1) void clearScreenId() => $_clearField(1); } + const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = - $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/generated/glimpse.pbenum.dart b/lib/src/generated/glimpse.pbenum.dart new file mode 100644 index 0000000..03115b1 --- /dev/null +++ b/lib/src/generated/glimpse.pbenum.dart @@ -0,0 +1,571 @@ +// +// Generated code. Do not modify. +// source: glimpse.proto +// +// @dart = 3.3 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +/// Enum for Widget Types +class WidgetType extends $pb.ProtobufEnum { + static const WidgetType WIDGET_TYPE_UNSPECIFIED = WidgetType._(0, _omitEnumNames ? '' : 'WIDGET_TYPE_UNSPECIFIED'); + static const WidgetType COLUMN = WidgetType._(1, _omitEnumNames ? '' : 'COLUMN'); + static const WidgetType ROW = WidgetType._(2, _omitEnumNames ? '' : 'ROW'); + static const WidgetType TEXT = WidgetType._(3, _omitEnumNames ? '' : 'TEXT'); + static const WidgetType IMAGE = WidgetType._(4, _omitEnumNames ? '' : 'IMAGE'); + static const WidgetType SIZED_BOX = WidgetType._(5, _omitEnumNames ? '' : 'SIZED_BOX'); + static const WidgetType CONTAINER = WidgetType._(6, _omitEnumNames ? '' : 'CONTAINER'); + static const WidgetType SCAFFOLD = WidgetType._(7, _omitEnumNames ? '' : 'SCAFFOLD'); + static const WidgetType SPACER = WidgetType._(8, _omitEnumNames ? '' : 'SPACER'); + static const WidgetType ICON = WidgetType._(9, _omitEnumNames ? '' : 'ICON'); + static const WidgetType APP_BAR = WidgetType._(10, _omitEnumNames ? '' : 'APP_BAR'); + + static const $core.List values = [ + WIDGET_TYPE_UNSPECIFIED, + COLUMN, + ROW, + TEXT, + IMAGE, + SIZED_BOX, + CONTAINER, + SCAFFOLD, + SPACER, + ICON, + APP_BAR, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 10); + static WidgetType? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const WidgetType._(super.v, super.n); +} + +/// Message for BoxFit +class BoxFitProto extends $pb.ProtobufEnum { + static const BoxFitProto BOX_FIT_UNSPECIFIED = BoxFitProto._(0, _omitEnumNames ? '' : 'BOX_FIT_UNSPECIFIED'); + static const BoxFitProto FILL = BoxFitProto._(1, _omitEnumNames ? '' : 'FILL'); + static const BoxFitProto CONTAIN = BoxFitProto._(2, _omitEnumNames ? '' : 'CONTAIN'); + static const BoxFitProto COVER = BoxFitProto._(3, _omitEnumNames ? '' : 'COVER'); + static const BoxFitProto FIT_WIDTH = BoxFitProto._(4, _omitEnumNames ? '' : 'FIT_WIDTH'); + static const BoxFitProto FIT_HEIGHT = BoxFitProto._(5, _omitEnumNames ? '' : 'FIT_HEIGHT'); + static const BoxFitProto NONE_BOX_FIT = BoxFitProto._(6, _omitEnumNames ? '' : 'NONE_BOX_FIT'); + static const BoxFitProto SCALE_DOWN = BoxFitProto._(7, _omitEnumNames ? '' : 'SCALE_DOWN'); + + static const $core.List values = [ + BOX_FIT_UNSPECIFIED, + FILL, + CONTAIN, + COVER, + FIT_WIDTH, + FIT_HEIGHT, + NONE_BOX_FIT, + SCALE_DOWN, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 7); + static BoxFitProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const BoxFitProto._(super.v, super.n); +} + +/// Enum for BorderStyle +class BorderStyleProto extends $pb.ProtobufEnum { + static const BorderStyleProto BORDER_STYLE_UNSPECIFIED = BorderStyleProto._(0, _omitEnumNames ? '' : 'BORDER_STYLE_UNSPECIFIED'); + static const BorderStyleProto SOLID = BorderStyleProto._(1, _omitEnumNames ? '' : 'SOLID'); + static const BorderStyleProto NONE_BORDER = BorderStyleProto._(2, _omitEnumNames ? '' : 'NONE_BORDER'); + + static const $core.List values = [ + BORDER_STYLE_UNSPECIFIED, + SOLID, + NONE_BORDER, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2); + static BorderStyleProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const BorderStyleProto._(super.v, super.n); +} + +/// Enum for BoxShape +class BoxShapeProto extends $pb.ProtobufEnum { + static const BoxShapeProto BOX_SHAPE_UNSPECIFIED = BoxShapeProto._(0, _omitEnumNames ? '' : 'BOX_SHAPE_UNSPECIFIED'); + static const BoxShapeProto RECTANGLE = BoxShapeProto._(1, _omitEnumNames ? '' : 'RECTANGLE'); + static const BoxShapeProto CIRCLE = BoxShapeProto._(2, _omitEnumNames ? '' : 'CIRCLE'); + + static const $core.List values = [ + BOX_SHAPE_UNSPECIFIED, + RECTANGLE, + CIRCLE, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2); + static BoxShapeProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const BoxShapeProto._(super.v, super.n); +} + +/// Enum for ImageRepeat +class ImageRepeatProto extends $pb.ProtobufEnum { + static const ImageRepeatProto IMAGE_REPEAT_UNSPECIFIED = ImageRepeatProto._(0, _omitEnumNames ? '' : 'IMAGE_REPEAT_UNSPECIFIED'); + static const ImageRepeatProto REPEAT = ImageRepeatProto._(1, _omitEnumNames ? '' : 'REPEAT'); + static const ImageRepeatProto REPEAT_X = ImageRepeatProto._(2, _omitEnumNames ? '' : 'REPEAT_X'); + static const ImageRepeatProto REPEAT_Y = ImageRepeatProto._(3, _omitEnumNames ? '' : 'REPEAT_Y'); + static const ImageRepeatProto NO_REPEAT = ImageRepeatProto._(4, _omitEnumNames ? '' : 'NO_REPEAT'); + + static const $core.List values = [ + IMAGE_REPEAT_UNSPECIFIED, + REPEAT, + REPEAT_X, + REPEAT_Y, + NO_REPEAT, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 4); + static ImageRepeatProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const ImageRepeatProto._(super.v, super.n); +} + +/// Enum for FilterQuality +class FilterQualityProto extends $pb.ProtobufEnum { + static const FilterQualityProto FILTER_QUALITY_UNSPECIFIED = FilterQualityProto._(0, _omitEnumNames ? '' : 'FILTER_QUALITY_UNSPECIFIED'); + static const FilterQualityProto NONE_FQ = FilterQualityProto._(1, _omitEnumNames ? '' : 'NONE_FQ'); + static const FilterQualityProto LOW = FilterQualityProto._(2, _omitEnumNames ? '' : 'LOW'); + static const FilterQualityProto MEDIUM = FilterQualityProto._(3, _omitEnumNames ? '' : 'MEDIUM'); + static const FilterQualityProto HIGH = FilterQualityProto._(4, _omitEnumNames ? '' : 'HIGH'); + + static const $core.List values = [ + FILTER_QUALITY_UNSPECIFIED, + NONE_FQ, + LOW, + MEDIUM, + HIGH, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 4); + static FilterQualityProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const FilterQualityProto._(super.v, super.n); +} + +/// New enums for Row and Column properties +class MainAxisAlignmentProto extends $pb.ProtobufEnum { + static const MainAxisAlignmentProto MAIN_AXIS_ALIGNMENT_UNSPECIFIED = MainAxisAlignmentProto._(0, _omitEnumNames ? '' : 'MAIN_AXIS_ALIGNMENT_UNSPECIFIED'); + static const MainAxisAlignmentProto MAIN_AXIS_START = MainAxisAlignmentProto._(1, _omitEnumNames ? '' : 'MAIN_AXIS_START'); + static const MainAxisAlignmentProto MAIN_AXIS_END = MainAxisAlignmentProto._(2, _omitEnumNames ? '' : 'MAIN_AXIS_END'); + static const MainAxisAlignmentProto MAIN_AXIS_CENTER = MainAxisAlignmentProto._(3, _omitEnumNames ? '' : 'MAIN_AXIS_CENTER'); + static const MainAxisAlignmentProto SPACE_BETWEEN = MainAxisAlignmentProto._(4, _omitEnumNames ? '' : 'SPACE_BETWEEN'); + static const MainAxisAlignmentProto SPACE_AROUND = MainAxisAlignmentProto._(5, _omitEnumNames ? '' : 'SPACE_AROUND'); + static const MainAxisAlignmentProto SPACE_EVENLY = MainAxisAlignmentProto._(6, _omitEnumNames ? '' : 'SPACE_EVENLY'); + + static const $core.List values = [ + MAIN_AXIS_ALIGNMENT_UNSPECIFIED, + MAIN_AXIS_START, + MAIN_AXIS_END, + MAIN_AXIS_CENTER, + SPACE_BETWEEN, + SPACE_AROUND, + SPACE_EVENLY, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 6); + static MainAxisAlignmentProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const MainAxisAlignmentProto._(super.v, super.n); +} + +class CrossAxisAlignmentProto extends $pb.ProtobufEnum { + static const CrossAxisAlignmentProto CROSS_AXIS_ALIGNMENT_UNSPECIFIED = CrossAxisAlignmentProto._(0, _omitEnumNames ? '' : 'CROSS_AXIS_ALIGNMENT_UNSPECIFIED'); + static const CrossAxisAlignmentProto CROSS_AXIS_START = CrossAxisAlignmentProto._(1, _omitEnumNames ? '' : 'CROSS_AXIS_START'); + static const CrossAxisAlignmentProto CROSS_AXIS_END = CrossAxisAlignmentProto._(2, _omitEnumNames ? '' : 'CROSS_AXIS_END'); + static const CrossAxisAlignmentProto CROSS_AXIS_CENTER = CrossAxisAlignmentProto._(3, _omitEnumNames ? '' : 'CROSS_AXIS_CENTER'); + static const CrossAxisAlignmentProto STRETCH = CrossAxisAlignmentProto._(4, _omitEnumNames ? '' : 'STRETCH'); + static const CrossAxisAlignmentProto BASELINE = CrossAxisAlignmentProto._(5, _omitEnumNames ? '' : 'BASELINE'); + + static const $core.List values = [ + CROSS_AXIS_ALIGNMENT_UNSPECIFIED, + CROSS_AXIS_START, + CROSS_AXIS_END, + CROSS_AXIS_CENTER, + STRETCH, + BASELINE, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 5); + static CrossAxisAlignmentProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const CrossAxisAlignmentProto._(super.v, super.n); +} + +class MainAxisSizeProto extends $pb.ProtobufEnum { + static const MainAxisSizeProto MAIN_AXIS_SIZE_UNSPECIFIED = MainAxisSizeProto._(0, _omitEnumNames ? '' : 'MAIN_AXIS_SIZE_UNSPECIFIED'); + static const MainAxisSizeProto MIN = MainAxisSizeProto._(1, _omitEnumNames ? '' : 'MIN'); + static const MainAxisSizeProto MAX = MainAxisSizeProto._(2, _omitEnumNames ? '' : 'MAX'); + + static const $core.List values = [ + MAIN_AXIS_SIZE_UNSPECIFIED, + MIN, + MAX, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2); + static MainAxisSizeProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const MainAxisSizeProto._(super.v, super.n); +} + +class TextDirectionProto extends $pb.ProtobufEnum { + static const TextDirectionProto TEXT_DIRECTION_UNSPECIFIED = TextDirectionProto._(0, _omitEnumNames ? '' : 'TEXT_DIRECTION_UNSPECIFIED'); + static const TextDirectionProto LTR = TextDirectionProto._(1, _omitEnumNames ? '' : 'LTR'); + static const TextDirectionProto RTL = TextDirectionProto._(2, _omitEnumNames ? '' : 'RTL'); + + static const $core.List values = [ + TEXT_DIRECTION_UNSPECIFIED, + LTR, + RTL, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2); + static TextDirectionProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const TextDirectionProto._(super.v, super.n); +} + +class VerticalDirectionProto extends $pb.ProtobufEnum { + static const VerticalDirectionProto VERTICAL_DIRECTION_UNSPECIFIED = VerticalDirectionProto._(0, _omitEnumNames ? '' : 'VERTICAL_DIRECTION_UNSPECIFIED'); + static const VerticalDirectionProto UP = VerticalDirectionProto._(1, _omitEnumNames ? '' : 'UP'); + static const VerticalDirectionProto DOWN = VerticalDirectionProto._(2, _omitEnumNames ? '' : 'DOWN'); + + static const $core.List values = [ + VERTICAL_DIRECTION_UNSPECIFIED, + UP, + DOWN, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2); + static VerticalDirectionProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const VerticalDirectionProto._(super.v, super.n); +} + +class TextBaselineProto extends $pb.ProtobufEnum { + static const TextBaselineProto TEXT_BASELINE_UNSPECIFIED = TextBaselineProto._(0, _omitEnumNames ? '' : 'TEXT_BASELINE_UNSPECIFIED'); + static const TextBaselineProto ALPHABETIC = TextBaselineProto._(1, _omitEnumNames ? '' : 'ALPHABETIC'); + static const TextBaselineProto IDEOGRAPHIC = TextBaselineProto._(2, _omitEnumNames ? '' : 'IDEOGRAPHIC'); + + static const $core.List values = [ + TEXT_BASELINE_UNSPECIFIED, + ALPHABETIC, + IDEOGRAPHIC, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2); + static TextBaselineProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const TextBaselineProto._(super.v, super.n); +} + +/// New enum for Clip behavior +class ClipProto extends $pb.ProtobufEnum { + static const ClipProto CLIP_UNSPECIFIED = ClipProto._(0, _omitEnumNames ? '' : 'CLIP_UNSPECIFIED'); + static const ClipProto CLIP_NONE = ClipProto._(1, _omitEnumNames ? '' : 'CLIP_NONE'); + static const ClipProto HARD_EDGE = ClipProto._(2, _omitEnumNames ? '' : 'HARD_EDGE'); + static const ClipProto ANTI_ALIAS = ClipProto._(3, _omitEnumNames ? '' : 'ANTI_ALIAS'); + static const ClipProto ANTI_ALIAS_WITH_SAVE_LAYER = ClipProto._(4, _omitEnumNames ? '' : 'ANTI_ALIAS_WITH_SAVE_LAYER'); + + static const $core.List values = [ + CLIP_UNSPECIFIED, + CLIP_NONE, + HARD_EDGE, + ANTI_ALIAS, + ANTI_ALIAS_WITH_SAVE_LAYER, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 4); + static ClipProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const ClipProto._(super.v, super.n); +} + +/// New enums for Text properties +class TextAlignProto extends $pb.ProtobufEnum { + static const TextAlignProto TEXT_ALIGN_UNSPECIFIED = TextAlignProto._(0, _omitEnumNames ? '' : 'TEXT_ALIGN_UNSPECIFIED'); + static const TextAlignProto LEFT = TextAlignProto._(1, _omitEnumNames ? '' : 'LEFT'); + static const TextAlignProto RIGHT = TextAlignProto._(2, _omitEnumNames ? '' : 'RIGHT'); + static const TextAlignProto TEXT_ALIGN_CENTER = TextAlignProto._(3, _omitEnumNames ? '' : 'TEXT_ALIGN_CENTER'); + static const TextAlignProto JUSTIFY = TextAlignProto._(4, _omitEnumNames ? '' : 'JUSTIFY'); + static const TextAlignProto TEXT_ALIGN_START = TextAlignProto._(5, _omitEnumNames ? '' : 'TEXT_ALIGN_START'); + static const TextAlignProto TEXT_ALIGN_END = TextAlignProto._(6, _omitEnumNames ? '' : 'TEXT_ALIGN_END'); + + static const $core.List values = [ + TEXT_ALIGN_UNSPECIFIED, + LEFT, + RIGHT, + TEXT_ALIGN_CENTER, + JUSTIFY, + TEXT_ALIGN_START, + TEXT_ALIGN_END, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 6); + static TextAlignProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const TextAlignProto._(super.v, super.n); +} + +class TextOverflowProto extends $pb.ProtobufEnum { + static const TextOverflowProto TEXT_OVERFLOW_UNSPECIFIED = TextOverflowProto._(0, _omitEnumNames ? '' : 'TEXT_OVERFLOW_UNSPECIFIED'); + static const TextOverflowProto CLIP = TextOverflowProto._(1, _omitEnumNames ? '' : 'CLIP'); + static const TextOverflowProto ELLIPSIS = TextOverflowProto._(2, _omitEnumNames ? '' : 'ELLIPSIS'); + static const TextOverflowProto FADE = TextOverflowProto._(3, _omitEnumNames ? '' : 'FADE'); + static const TextOverflowProto VISIBLE = TextOverflowProto._(4, _omitEnumNames ? '' : 'VISIBLE'); + + static const $core.List values = [ + TEXT_OVERFLOW_UNSPECIFIED, + CLIP, + ELLIPSIS, + FADE, + VISIBLE, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 4); + static TextOverflowProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const TextOverflowProto._(super.v, super.n); +} + +class TextDecorationProto extends $pb.ProtobufEnum { + static const TextDecorationProto TEXT_DECORATION_UNSPECIFIED = TextDecorationProto._(0, _omitEnumNames ? '' : 'TEXT_DECORATION_UNSPECIFIED'); + static const TextDecorationProto TEXT_DECORATION_NONE = TextDecorationProto._(1, _omitEnumNames ? '' : 'TEXT_DECORATION_NONE'); + static const TextDecorationProto UNDERLINE = TextDecorationProto._(2, _omitEnumNames ? '' : 'UNDERLINE'); + static const TextDecorationProto OVERLINE = TextDecorationProto._(3, _omitEnumNames ? '' : 'OVERLINE'); + static const TextDecorationProto LINE_THROUGH = TextDecorationProto._(4, _omitEnumNames ? '' : 'LINE_THROUGH'); + + static const $core.List values = [ + TEXT_DECORATION_UNSPECIFIED, + TEXT_DECORATION_NONE, + UNDERLINE, + OVERLINE, + LINE_THROUGH, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 4); + static TextDecorationProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const TextDecorationProto._(super.v, super.n); +} + +class FontStyleProto extends $pb.ProtobufEnum { + static const FontStyleProto FONT_STYLE_UNSPECIFIED = FontStyleProto._(0, _omitEnumNames ? '' : 'FONT_STYLE_UNSPECIFIED'); + static const FontStyleProto NORMAL = FontStyleProto._(1, _omitEnumNames ? '' : 'NORMAL'); + static const FontStyleProto ITALIC = FontStyleProto._(2, _omitEnumNames ? '' : 'ITALIC'); + + static const $core.List values = [ + FONT_STYLE_UNSPECIFIED, + NORMAL, + ITALIC, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2); + static FontStyleProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const FontStyleProto._(super.v, super.n); +} + +/// New enum for Blend modes +class BlendModeProto extends $pb.ProtobufEnum { + static const BlendModeProto BLEND_MODE_UNSPECIFIED = BlendModeProto._(0, _omitEnumNames ? '' : 'BLEND_MODE_UNSPECIFIED'); + static const BlendModeProto CLEAR = BlendModeProto._(1, _omitEnumNames ? '' : 'CLEAR'); + static const BlendModeProto SRC = BlendModeProto._(2, _omitEnumNames ? '' : 'SRC'); + static const BlendModeProto DST = BlendModeProto._(3, _omitEnumNames ? '' : 'DST'); + static const BlendModeProto SRC_OVER = BlendModeProto._(4, _omitEnumNames ? '' : 'SRC_OVER'); + static const BlendModeProto DST_OVER = BlendModeProto._(5, _omitEnumNames ? '' : 'DST_OVER'); + static const BlendModeProto SRC_IN = BlendModeProto._(6, _omitEnumNames ? '' : 'SRC_IN'); + static const BlendModeProto DST_IN = BlendModeProto._(7, _omitEnumNames ? '' : 'DST_IN'); + static const BlendModeProto SRC_OUT = BlendModeProto._(8, _omitEnumNames ? '' : 'SRC_OUT'); + static const BlendModeProto DST_OUT = BlendModeProto._(9, _omitEnumNames ? '' : 'DST_OUT'); + static const BlendModeProto SRC_ATOP = BlendModeProto._(10, _omitEnumNames ? '' : 'SRC_ATOP'); + static const BlendModeProto DST_ATOP = BlendModeProto._(11, _omitEnumNames ? '' : 'DST_ATOP'); + static const BlendModeProto XOR = BlendModeProto._(12, _omitEnumNames ? '' : 'XOR'); + static const BlendModeProto PLUS = BlendModeProto._(13, _omitEnumNames ? '' : 'PLUS'); + static const BlendModeProto MODULATE = BlendModeProto._(14, _omitEnumNames ? '' : 'MODULATE'); + static const BlendModeProto SCREEN = BlendModeProto._(15, _omitEnumNames ? '' : 'SCREEN'); + static const BlendModeProto OVERLAY = BlendModeProto._(16, _omitEnumNames ? '' : 'OVERLAY'); + static const BlendModeProto DARKEN = BlendModeProto._(17, _omitEnumNames ? '' : 'DARKEN'); + static const BlendModeProto LIGHTEN = BlendModeProto._(18, _omitEnumNames ? '' : 'LIGHTEN'); + static const BlendModeProto COLOR_DODGE = BlendModeProto._(19, _omitEnumNames ? '' : 'COLOR_DODGE'); + static const BlendModeProto COLOR_BURN = BlendModeProto._(20, _omitEnumNames ? '' : 'COLOR_BURN'); + static const BlendModeProto HARD_LIGHT = BlendModeProto._(21, _omitEnumNames ? '' : 'HARD_LIGHT'); + static const BlendModeProto SOFT_LIGHT = BlendModeProto._(22, _omitEnumNames ? '' : 'SOFT_LIGHT'); + static const BlendModeProto DIFFERENCE = BlendModeProto._(23, _omitEnumNames ? '' : 'DIFFERENCE'); + static const BlendModeProto EXCLUSION = BlendModeProto._(24, _omitEnumNames ? '' : 'EXCLUSION'); + static const BlendModeProto MULTIPLY = BlendModeProto._(25, _omitEnumNames ? '' : 'MULTIPLY'); + static const BlendModeProto HUE = BlendModeProto._(26, _omitEnumNames ? '' : 'HUE'); + static const BlendModeProto SATURATION = BlendModeProto._(27, _omitEnumNames ? '' : 'SATURATION'); + static const BlendModeProto COLOR = BlendModeProto._(28, _omitEnumNames ? '' : 'COLOR'); + static const BlendModeProto LUMINOSITY = BlendModeProto._(29, _omitEnumNames ? '' : 'LUMINOSITY'); + + static const $core.List values = [ + BLEND_MODE_UNSPECIFIED, + CLEAR, + SRC, + DST, + SRC_OVER, + DST_OVER, + SRC_IN, + DST_IN, + SRC_OUT, + DST_OUT, + SRC_ATOP, + DST_ATOP, + XOR, + PLUS, + MODULATE, + SCREEN, + OVERLAY, + DARKEN, + LIGHTEN, + COLOR_DODGE, + COLOR_BURN, + HARD_LIGHT, + SOFT_LIGHT, + DIFFERENCE, + EXCLUSION, + MULTIPLY, + HUE, + SATURATION, + COLOR, + LUMINOSITY, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 29); + static BlendModeProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const BlendModeProto._(super.v, super.n); +} + +/// New enum for FloatingActionButtonLocation +class FloatingActionButtonLocationProto extends $pb.ProtobufEnum { + static const FloatingActionButtonLocationProto FAB_LOCATION_UNSPECIFIED = FloatingActionButtonLocationProto._(0, _omitEnumNames ? '' : 'FAB_LOCATION_UNSPECIFIED'); + static const FloatingActionButtonLocationProto FAB_START_TOP = FloatingActionButtonLocationProto._(1, _omitEnumNames ? '' : 'FAB_START_TOP'); + static const FloatingActionButtonLocationProto FAB_START = FloatingActionButtonLocationProto._(2, _omitEnumNames ? '' : 'FAB_START'); + static const FloatingActionButtonLocationProto FAB_START_FLOAT = FloatingActionButtonLocationProto._(3, _omitEnumNames ? '' : 'FAB_START_FLOAT'); + static const FloatingActionButtonLocationProto FAB_CENTER_TOP = FloatingActionButtonLocationProto._(4, _omitEnumNames ? '' : 'FAB_CENTER_TOP'); + static const FloatingActionButtonLocationProto FAB_CENTER = FloatingActionButtonLocationProto._(5, _omitEnumNames ? '' : 'FAB_CENTER'); + static const FloatingActionButtonLocationProto FAB_CENTER_FLOAT = FloatingActionButtonLocationProto._(6, _omitEnumNames ? '' : 'FAB_CENTER_FLOAT'); + static const FloatingActionButtonLocationProto FAB_END_TOP = FloatingActionButtonLocationProto._(7, _omitEnumNames ? '' : 'FAB_END_TOP'); + static const FloatingActionButtonLocationProto FAB_END = FloatingActionButtonLocationProto._(8, _omitEnumNames ? '' : 'FAB_END'); + static const FloatingActionButtonLocationProto FAB_END_FLOAT = FloatingActionButtonLocationProto._(9, _omitEnumNames ? '' : 'FAB_END_FLOAT'); + static const FloatingActionButtonLocationProto FAB_MINI_CENTER_TOP = FloatingActionButtonLocationProto._(10, _omitEnumNames ? '' : 'FAB_MINI_CENTER_TOP'); + static const FloatingActionButtonLocationProto FAB_MINI_CENTER_FLOAT = FloatingActionButtonLocationProto._(11, _omitEnumNames ? '' : 'FAB_MINI_CENTER_FLOAT'); + static const FloatingActionButtonLocationProto FAB_MINI_START_TOP = FloatingActionButtonLocationProto._(12, _omitEnumNames ? '' : 'FAB_MINI_START_TOP'); + static const FloatingActionButtonLocationProto FAB_MINI_START_FLOAT = FloatingActionButtonLocationProto._(13, _omitEnumNames ? '' : 'FAB_MINI_START_FLOAT'); + static const FloatingActionButtonLocationProto FAB_MINI_END_TOP = FloatingActionButtonLocationProto._(14, _omitEnumNames ? '' : 'FAB_MINI_END_TOP'); + static const FloatingActionButtonLocationProto FAB_MINI_END_FLOAT = FloatingActionButtonLocationProto._(15, _omitEnumNames ? '' : 'FAB_MINI_END_FLOAT'); + + static const $core.List values = [ + FAB_LOCATION_UNSPECIFIED, + FAB_START_TOP, + FAB_START, + FAB_START_FLOAT, + FAB_CENTER_TOP, + FAB_CENTER, + FAB_CENTER_FLOAT, + FAB_END_TOP, + FAB_END, + FAB_END_FLOAT, + FAB_MINI_CENTER_TOP, + FAB_MINI_CENTER_FLOAT, + FAB_MINI_START_TOP, + FAB_MINI_START_FLOAT, + FAB_MINI_END_TOP, + FAB_MINI_END_FLOAT, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 15); + static FloatingActionButtonLocationProto? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const FloatingActionButtonLocationProto._(super.v, super.n); +} + +class GradientData_GradientType extends $pb.ProtobufEnum { + static const GradientData_GradientType GRADIENT_TYPE_UNSPECIFIED = GradientData_GradientType._(0, _omitEnumNames ? '' : 'GRADIENT_TYPE_UNSPECIFIED'); + static const GradientData_GradientType LINEAR = GradientData_GradientType._(1, _omitEnumNames ? '' : 'LINEAR'); + static const GradientData_GradientType RADIAL = GradientData_GradientType._(2, _omitEnumNames ? '' : 'RADIAL'); + static const GradientData_GradientType SWEEP = GradientData_GradientType._(3, _omitEnumNames ? '' : 'SWEEP'); + + static const $core.List values = [ + GRADIENT_TYPE_UNSPECIFIED, + LINEAR, + RADIAL, + SWEEP, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 3); + static GradientData_GradientType? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const GradientData_GradientType._(super.v, super.n); +} + +/// Predefined alignments +class AlignmentData_PredefinedAlignment extends $pb.ProtobufEnum { + static const AlignmentData_PredefinedAlignment PREDEFINED_ALIGNMENT_UNSPECIFIED = AlignmentData_PredefinedAlignment._(0, _omitEnumNames ? '' : 'PREDEFINED_ALIGNMENT_UNSPECIFIED'); + static const AlignmentData_PredefinedAlignment BOTTOM_CENTER = AlignmentData_PredefinedAlignment._(1, _omitEnumNames ? '' : 'BOTTOM_CENTER'); + static const AlignmentData_PredefinedAlignment BOTTOM_LEFT = AlignmentData_PredefinedAlignment._(2, _omitEnumNames ? '' : 'BOTTOM_LEFT'); + static const AlignmentData_PredefinedAlignment BOTTOM_RIGHT = AlignmentData_PredefinedAlignment._(3, _omitEnumNames ? '' : 'BOTTOM_RIGHT'); + static const AlignmentData_PredefinedAlignment CENTER_ALIGN = AlignmentData_PredefinedAlignment._(4, _omitEnumNames ? '' : 'CENTER_ALIGN'); + static const AlignmentData_PredefinedAlignment CENTER_LEFT = AlignmentData_PredefinedAlignment._(5, _omitEnumNames ? '' : 'CENTER_LEFT'); + static const AlignmentData_PredefinedAlignment CENTER_RIGHT = AlignmentData_PredefinedAlignment._(6, _omitEnumNames ? '' : 'CENTER_RIGHT'); + static const AlignmentData_PredefinedAlignment TOP_CENTER = AlignmentData_PredefinedAlignment._(7, _omitEnumNames ? '' : 'TOP_CENTER'); + static const AlignmentData_PredefinedAlignment TOP_LEFT = AlignmentData_PredefinedAlignment._(8, _omitEnumNames ? '' : 'TOP_LEFT'); + static const AlignmentData_PredefinedAlignment TOP_RIGHT = AlignmentData_PredefinedAlignment._(9, _omitEnumNames ? '' : 'TOP_RIGHT'); + + static const $core.List values = [ + PREDEFINED_ALIGNMENT_UNSPECIFIED, + BOTTOM_CENTER, + BOTTOM_LEFT, + BOTTOM_RIGHT, + CENTER_ALIGN, + CENTER_LEFT, + CENTER_RIGHT, + TOP_CENTER, + TOP_LEFT, + TOP_RIGHT, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 9); + static AlignmentData_PredefinedAlignment? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const AlignmentData_PredefinedAlignment._(super.v, super.n); +} + +class TransformData_TransformType extends $pb.ProtobufEnum { + static const TransformData_TransformType TRANSFORM_TYPE_UNSPECIFIED = TransformData_TransformType._(0, _omitEnumNames ? '' : 'TRANSFORM_TYPE_UNSPECIFIED'); + static const TransformData_TransformType MATRIX_4X4 = TransformData_TransformType._(1, _omitEnumNames ? '' : 'MATRIX_4X4'); + static const TransformData_TransformType TRANSLATE = TransformData_TransformType._(2, _omitEnumNames ? '' : 'TRANSLATE'); + static const TransformData_TransformType ROTATE = TransformData_TransformType._(3, _omitEnumNames ? '' : 'ROTATE'); + static const TransformData_TransformType SCALE = TransformData_TransformType._(4, _omitEnumNames ? '' : 'SCALE'); + + static const $core.List values = [ + TRANSFORM_TYPE_UNSPECIFIED, + MATRIX_4X4, + TRANSLATE, + ROTATE, + SCALE, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 4); + static TransformData_TransformType? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const TransformData_TransformType._(super.v, super.n); +} + + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/generated/glimpse.pbgrpc.dart b/lib/src/generated/glimpse.pbgrpc.dart new file mode 100644 index 0000000..99d6b5b --- /dev/null +++ b/lib/src/generated/glimpse.pbgrpc.dart @@ -0,0 +1,64 @@ +// +// Generated code. Do not modify. +// source: glimpse.proto +// +// @dart = 3.3 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:async' as $async; +import 'dart:core' as $core; + +import 'package:grpc/service_api.dart' as $grpc; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'glimpse.pb.dart' as $0; + +export 'glimpse.pb.dart'; + +/// Service definition +@$pb.GrpcServiceName('flutter_glimpse.GlimpseService') +class GlimpseServiceClient extends $grpc.Client { + /// The hostname for this service. + static const $core.String defaultHost = ''; + + /// OAuth scopes needed for the client. + static const $core.List<$core.String> oauthScopes = [ + '', + ]; + + static final _$getGlimpseWidget = $grpc.ClientMethod<$0.GlimpseRequest, $0.GlimpseWidgetData>( + '/flutter_glimpse.GlimpseService/GetGlimpseWidget', + ($0.GlimpseRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.GlimpseWidgetData.fromBuffer(value)); + + GlimpseServiceClient(super.channel, {super.options, super.interceptors}); + + $grpc.ResponseFuture<$0.GlimpseWidgetData> getGlimpseWidget($0.GlimpseRequest request, {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getGlimpseWidget, request, options: options); + } +} + +@$pb.GrpcServiceName('flutter_glimpse.GlimpseService') +abstract class GlimpseServiceBase extends $grpc.Service { + $core.String get $name => 'flutter_glimpse.GlimpseService'; + + GlimpseServiceBase() { + $addMethod($grpc.ServiceMethod<$0.GlimpseRequest, $0.GlimpseWidgetData>( + 'GetGlimpseWidget', + getGlimpseWidget_Pre, + false, + false, + ($core.List<$core.int> value) => $0.GlimpseRequest.fromBuffer(value), + ($0.GlimpseWidgetData value) => value.writeToBuffer())); + } + + $async.Future<$0.GlimpseWidgetData> getGlimpseWidget_Pre($grpc.ServiceCall $call, $async.Future<$0.GlimpseRequest> $request) async { + return getGlimpseWidget($call, await $request); + } + + $async.Future<$0.GlimpseWidgetData> getGlimpseWidget($grpc.ServiceCall call, $0.GlimpseRequest request); +} diff --git a/lib/src/generated/glimpse.pbjson.dart b/lib/src/generated/glimpse.pbjson.dart new file mode 100644 index 0000000..7912585 --- /dev/null +++ b/lib/src/generated/glimpse.pbjson.dart @@ -0,0 +1,1135 @@ +// +// Generated code. Do not modify. +// source: glimpse.proto +// +// @dart = 3.3 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use widgetTypeDescriptor instead') +const WidgetType$json = { + '1': 'WidgetType', + '2': [ + {'1': 'WIDGET_TYPE_UNSPECIFIED', '2': 0}, + {'1': 'COLUMN', '2': 1}, + {'1': 'ROW', '2': 2}, + {'1': 'TEXT', '2': 3}, + {'1': 'IMAGE', '2': 4}, + {'1': 'SIZED_BOX', '2': 5}, + {'1': 'CONTAINER', '2': 6}, + {'1': 'SCAFFOLD', '2': 7}, + {'1': 'SPACER', '2': 8}, + {'1': 'ICON', '2': 9}, + {'1': 'APP_BAR', '2': 10}, + ], +}; + +/// Descriptor for `WidgetType`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List widgetTypeDescriptor = $convert.base64Decode( + 'CgpXaWRnZXRUeXBlEhsKF1dJREdFVF9UWVBFX1VOU1BFQ0lGSUVEEAASCgoGQ09MVU1OEAESBw' + 'oDUk9XEAISCAoEVEVYVBADEgkKBUlNQUdFEAQSDQoJU0laRURfQk9YEAUSDQoJQ09OVEFJTkVS' + 'EAYSDAoIU0NBRkZPTEQQBxIKCgZTUEFDRVIQCBIICgRJQ09OEAkSCwoHQVBQX0JBUhAK'); + +@$core.Deprecated('Use boxFitProtoDescriptor instead') +const BoxFitProto$json = { + '1': 'BoxFitProto', + '2': [ + {'1': 'BOX_FIT_UNSPECIFIED', '2': 0}, + {'1': 'FILL', '2': 1}, + {'1': 'CONTAIN', '2': 2}, + {'1': 'COVER', '2': 3}, + {'1': 'FIT_WIDTH', '2': 4}, + {'1': 'FIT_HEIGHT', '2': 5}, + {'1': 'NONE_BOX_FIT', '2': 6}, + {'1': 'SCALE_DOWN', '2': 7}, + ], +}; + +/// Descriptor for `BoxFitProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List boxFitProtoDescriptor = $convert.base64Decode( + 'CgtCb3hGaXRQcm90bxIXChNCT1hfRklUX1VOU1BFQ0lGSUVEEAASCAoERklMTBABEgsKB0NPTl' + 'RBSU4QAhIJCgVDT1ZFUhADEg0KCUZJVF9XSURUSBAEEg4KCkZJVF9IRUlHSFQQBRIQCgxOT05F' + 'X0JPWF9GSVQQBhIOCgpTQ0FMRV9ET1dOEAc='); + +@$core.Deprecated('Use borderStyleProtoDescriptor instead') +const BorderStyleProto$json = { + '1': 'BorderStyleProto', + '2': [ + {'1': 'BORDER_STYLE_UNSPECIFIED', '2': 0}, + {'1': 'SOLID', '2': 1}, + {'1': 'NONE_BORDER', '2': 2}, + ], +}; + +/// Descriptor for `BorderStyleProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List borderStyleProtoDescriptor = $convert.base64Decode( + 'ChBCb3JkZXJTdHlsZVByb3RvEhwKGEJPUkRFUl9TVFlMRV9VTlNQRUNJRklFRBAAEgkKBVNPTE' + 'lEEAESDwoLTk9ORV9CT1JERVIQAg=='); + +@$core.Deprecated('Use boxShapeProtoDescriptor instead') +const BoxShapeProto$json = { + '1': 'BoxShapeProto', + '2': [ + {'1': 'BOX_SHAPE_UNSPECIFIED', '2': 0}, + {'1': 'RECTANGLE', '2': 1}, + {'1': 'CIRCLE', '2': 2}, + ], +}; + +/// Descriptor for `BoxShapeProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List boxShapeProtoDescriptor = $convert.base64Decode( + 'Cg1Cb3hTaGFwZVByb3RvEhkKFUJPWF9TSEFQRV9VTlNQRUNJRklFRBAAEg0KCVJFQ1RBTkdMRR' + 'ABEgoKBkNJUkNMRRAC'); + +@$core.Deprecated('Use imageRepeatProtoDescriptor instead') +const ImageRepeatProto$json = { + '1': 'ImageRepeatProto', + '2': [ + {'1': 'IMAGE_REPEAT_UNSPECIFIED', '2': 0}, + {'1': 'REPEAT', '2': 1}, + {'1': 'REPEAT_X', '2': 2}, + {'1': 'REPEAT_Y', '2': 3}, + {'1': 'NO_REPEAT', '2': 4}, + ], +}; + +/// Descriptor for `ImageRepeatProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List imageRepeatProtoDescriptor = $convert.base64Decode( + 'ChBJbWFnZVJlcGVhdFByb3RvEhwKGElNQUdFX1JFUEVBVF9VTlNQRUNJRklFRBAAEgoKBlJFUE' + 'VBVBABEgwKCFJFUEVBVF9YEAISDAoIUkVQRUFUX1kQAxINCglOT19SRVBFQVQQBA=='); + +@$core.Deprecated('Use filterQualityProtoDescriptor instead') +const FilterQualityProto$json = { + '1': 'FilterQualityProto', + '2': [ + {'1': 'FILTER_QUALITY_UNSPECIFIED', '2': 0}, + {'1': 'NONE_FQ', '2': 1}, + {'1': 'LOW', '2': 2}, + {'1': 'MEDIUM', '2': 3}, + {'1': 'HIGH', '2': 4}, + ], +}; + +/// Descriptor for `FilterQualityProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List filterQualityProtoDescriptor = $convert.base64Decode( + 'ChJGaWx0ZXJRdWFsaXR5UHJvdG8SHgoaRklMVEVSX1FVQUxJVFlfVU5TUEVDSUZJRUQQABILCg' + 'dOT05FX0ZREAESBwoDTE9XEAISCgoGTUVESVVNEAMSCAoESElHSBAE'); + +@$core.Deprecated('Use mainAxisAlignmentProtoDescriptor instead') +const MainAxisAlignmentProto$json = { + '1': 'MainAxisAlignmentProto', + '2': [ + {'1': 'MAIN_AXIS_ALIGNMENT_UNSPECIFIED', '2': 0}, + {'1': 'MAIN_AXIS_START', '2': 1}, + {'1': 'MAIN_AXIS_END', '2': 2}, + {'1': 'MAIN_AXIS_CENTER', '2': 3}, + {'1': 'SPACE_BETWEEN', '2': 4}, + {'1': 'SPACE_AROUND', '2': 5}, + {'1': 'SPACE_EVENLY', '2': 6}, + ], +}; + +/// Descriptor for `MainAxisAlignmentProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List mainAxisAlignmentProtoDescriptor = $convert.base64Decode( + 'ChZNYWluQXhpc0FsaWdubWVudFByb3RvEiMKH01BSU5fQVhJU19BTElHTk1FTlRfVU5TUEVDSU' + 'ZJRUQQABITCg9NQUlOX0FYSVNfU1RBUlQQARIRCg1NQUlOX0FYSVNfRU5EEAISFAoQTUFJTl9B' + 'WElTX0NFTlRFUhADEhEKDVNQQUNFX0JFVFdFRU4QBBIQCgxTUEFDRV9BUk9VTkQQBRIQCgxTUE' + 'FDRV9FVkVOTFkQBg=='); + +@$core.Deprecated('Use crossAxisAlignmentProtoDescriptor instead') +const CrossAxisAlignmentProto$json = { + '1': 'CrossAxisAlignmentProto', + '2': [ + {'1': 'CROSS_AXIS_ALIGNMENT_UNSPECIFIED', '2': 0}, + {'1': 'CROSS_AXIS_START', '2': 1}, + {'1': 'CROSS_AXIS_END', '2': 2}, + {'1': 'CROSS_AXIS_CENTER', '2': 3}, + {'1': 'STRETCH', '2': 4}, + {'1': 'BASELINE', '2': 5}, + ], +}; + +/// Descriptor for `CrossAxisAlignmentProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List crossAxisAlignmentProtoDescriptor = $convert.base64Decode( + 'ChdDcm9zc0F4aXNBbGlnbm1lbnRQcm90bxIkCiBDUk9TU19BWElTX0FMSUdOTUVOVF9VTlNQRU' + 'NJRklFRBAAEhQKEENST1NTX0FYSVNfU1RBUlQQARISCg5DUk9TU19BWElTX0VORBACEhUKEUNS' + 'T1NTX0FYSVNfQ0VOVEVSEAMSCwoHU1RSRVRDSBAEEgwKCEJBU0VMSU5FEAU='); + +@$core.Deprecated('Use mainAxisSizeProtoDescriptor instead') +const MainAxisSizeProto$json = { + '1': 'MainAxisSizeProto', + '2': [ + {'1': 'MAIN_AXIS_SIZE_UNSPECIFIED', '2': 0}, + {'1': 'MIN', '2': 1}, + {'1': 'MAX', '2': 2}, + ], +}; + +/// Descriptor for `MainAxisSizeProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List mainAxisSizeProtoDescriptor = $convert.base64Decode( + 'ChFNYWluQXhpc1NpemVQcm90bxIeChpNQUlOX0FYSVNfU0laRV9VTlNQRUNJRklFRBAAEgcKA0' + '1JThABEgcKA01BWBAC'); + +@$core.Deprecated('Use textDirectionProtoDescriptor instead') +const TextDirectionProto$json = { + '1': 'TextDirectionProto', + '2': [ + {'1': 'TEXT_DIRECTION_UNSPECIFIED', '2': 0}, + {'1': 'LTR', '2': 1}, + {'1': 'RTL', '2': 2}, + ], +}; + +/// Descriptor for `TextDirectionProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List textDirectionProtoDescriptor = $convert.base64Decode( + 'ChJUZXh0RGlyZWN0aW9uUHJvdG8SHgoaVEVYVF9ESVJFQ1RJT05fVU5TUEVDSUZJRUQQABIHCg' + 'NMVFIQARIHCgNSVEwQAg=='); + +@$core.Deprecated('Use verticalDirectionProtoDescriptor instead') +const VerticalDirectionProto$json = { + '1': 'VerticalDirectionProto', + '2': [ + {'1': 'VERTICAL_DIRECTION_UNSPECIFIED', '2': 0}, + {'1': 'UP', '2': 1}, + {'1': 'DOWN', '2': 2}, + ], +}; + +/// Descriptor for `VerticalDirectionProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List verticalDirectionProtoDescriptor = $convert.base64Decode( + 'ChZWZXJ0aWNhbERpcmVjdGlvblByb3RvEiIKHlZFUlRJQ0FMX0RJUkVDVElPTl9VTlNQRUNJRk' + 'lFRBAAEgYKAlVQEAESCAoERE9XThAC'); + +@$core.Deprecated('Use textBaselineProtoDescriptor instead') +const TextBaselineProto$json = { + '1': 'TextBaselineProto', + '2': [ + {'1': 'TEXT_BASELINE_UNSPECIFIED', '2': 0}, + {'1': 'ALPHABETIC', '2': 1}, + {'1': 'IDEOGRAPHIC', '2': 2}, + ], +}; + +/// Descriptor for `TextBaselineProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List textBaselineProtoDescriptor = $convert.base64Decode( + 'ChFUZXh0QmFzZWxpbmVQcm90bxIdChlURVhUX0JBU0VMSU5FX1VOU1BFQ0lGSUVEEAASDgoKQU' + 'xQSEFCRVRJQxABEg8KC0lERU9HUkFQSElDEAI='); + +@$core.Deprecated('Use clipProtoDescriptor instead') +const ClipProto$json = { + '1': 'ClipProto', + '2': [ + {'1': 'CLIP_UNSPECIFIED', '2': 0}, + {'1': 'CLIP_NONE', '2': 1}, + {'1': 'HARD_EDGE', '2': 2}, + {'1': 'ANTI_ALIAS', '2': 3}, + {'1': 'ANTI_ALIAS_WITH_SAVE_LAYER', '2': 4}, + ], +}; + +/// Descriptor for `ClipProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List clipProtoDescriptor = $convert.base64Decode( + 'CglDbGlwUHJvdG8SFAoQQ0xJUF9VTlNQRUNJRklFRBAAEg0KCUNMSVBfTk9ORRABEg0KCUhBUk' + 'RfRURHRRACEg4KCkFOVElfQUxJQVMQAxIeChpBTlRJX0FMSUFTX1dJVEhfU0FWRV9MQVlFUhAE'); + +@$core.Deprecated('Use textAlignProtoDescriptor instead') +const TextAlignProto$json = { + '1': 'TextAlignProto', + '2': [ + {'1': 'TEXT_ALIGN_UNSPECIFIED', '2': 0}, + {'1': 'LEFT', '2': 1}, + {'1': 'RIGHT', '2': 2}, + {'1': 'TEXT_ALIGN_CENTER', '2': 3}, + {'1': 'JUSTIFY', '2': 4}, + {'1': 'TEXT_ALIGN_START', '2': 5}, + {'1': 'TEXT_ALIGN_END', '2': 6}, + ], +}; + +/// Descriptor for `TextAlignProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List textAlignProtoDescriptor = $convert.base64Decode( + 'Cg5UZXh0QWxpZ25Qcm90bxIaChZURVhUX0FMSUdOX1VOU1BFQ0lGSUVEEAASCAoETEVGVBABEg' + 'kKBVJJR0hUEAISFQoRVEVYVF9BTElHTl9DRU5URVIQAxILCgdKVVNUSUZZEAQSFAoQVEVYVF9B' + 'TElHTl9TVEFSVBAFEhIKDlRFWFRfQUxJR05fRU5EEAY='); + +@$core.Deprecated('Use textOverflowProtoDescriptor instead') +const TextOverflowProto$json = { + '1': 'TextOverflowProto', + '2': [ + {'1': 'TEXT_OVERFLOW_UNSPECIFIED', '2': 0}, + {'1': 'CLIP', '2': 1}, + {'1': 'ELLIPSIS', '2': 2}, + {'1': 'FADE', '2': 3}, + {'1': 'VISIBLE', '2': 4}, + ], +}; + +/// Descriptor for `TextOverflowProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List textOverflowProtoDescriptor = $convert.base64Decode( + 'ChFUZXh0T3ZlcmZsb3dQcm90bxIdChlURVhUX09WRVJGTE9XX1VOU1BFQ0lGSUVEEAASCAoEQ0' + 'xJUBABEgwKCEVMTElQU0lTEAISCAoERkFERRADEgsKB1ZJU0lCTEUQBA=='); + +@$core.Deprecated('Use textDecorationProtoDescriptor instead') +const TextDecorationProto$json = { + '1': 'TextDecorationProto', + '2': [ + {'1': 'TEXT_DECORATION_UNSPECIFIED', '2': 0}, + {'1': 'TEXT_DECORATION_NONE', '2': 1}, + {'1': 'UNDERLINE', '2': 2}, + {'1': 'OVERLINE', '2': 3}, + {'1': 'LINE_THROUGH', '2': 4}, + ], +}; + +/// Descriptor for `TextDecorationProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List textDecorationProtoDescriptor = $convert.base64Decode( + 'ChNUZXh0RGVjb3JhdGlvblByb3RvEh8KG1RFWFRfREVDT1JBVElPTl9VTlNQRUNJRklFRBAAEh' + 'gKFFRFWFRfREVDT1JBVElPTl9OT05FEAESDQoJVU5ERVJMSU5FEAISDAoIT1ZFUkxJTkUQAxIQ' + 'CgxMSU5FX1RIUk9VR0gQBA=='); + +@$core.Deprecated('Use fontStyleProtoDescriptor instead') +const FontStyleProto$json = { + '1': 'FontStyleProto', + '2': [ + {'1': 'FONT_STYLE_UNSPECIFIED', '2': 0}, + {'1': 'NORMAL', '2': 1}, + {'1': 'ITALIC', '2': 2}, + ], +}; + +/// Descriptor for `FontStyleProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List fontStyleProtoDescriptor = $convert.base64Decode( + 'Cg5Gb250U3R5bGVQcm90bxIaChZGT05UX1NUWUxFX1VOU1BFQ0lGSUVEEAASCgoGTk9STUFMEA' + 'ESCgoGSVRBTElDEAI='); + +@$core.Deprecated('Use blendModeProtoDescriptor instead') +const BlendModeProto$json = { + '1': 'BlendModeProto', + '2': [ + {'1': 'BLEND_MODE_UNSPECIFIED', '2': 0}, + {'1': 'CLEAR', '2': 1}, + {'1': 'SRC', '2': 2}, + {'1': 'DST', '2': 3}, + {'1': 'SRC_OVER', '2': 4}, + {'1': 'DST_OVER', '2': 5}, + {'1': 'SRC_IN', '2': 6}, + {'1': 'DST_IN', '2': 7}, + {'1': 'SRC_OUT', '2': 8}, + {'1': 'DST_OUT', '2': 9}, + {'1': 'SRC_ATOP', '2': 10}, + {'1': 'DST_ATOP', '2': 11}, + {'1': 'XOR', '2': 12}, + {'1': 'PLUS', '2': 13}, + {'1': 'MODULATE', '2': 14}, + {'1': 'SCREEN', '2': 15}, + {'1': 'OVERLAY', '2': 16}, + {'1': 'DARKEN', '2': 17}, + {'1': 'LIGHTEN', '2': 18}, + {'1': 'COLOR_DODGE', '2': 19}, + {'1': 'COLOR_BURN', '2': 20}, + {'1': 'HARD_LIGHT', '2': 21}, + {'1': 'SOFT_LIGHT', '2': 22}, + {'1': 'DIFFERENCE', '2': 23}, + {'1': 'EXCLUSION', '2': 24}, + {'1': 'MULTIPLY', '2': 25}, + {'1': 'HUE', '2': 26}, + {'1': 'SATURATION', '2': 27}, + {'1': 'COLOR', '2': 28}, + {'1': 'LUMINOSITY', '2': 29}, + ], +}; + +/// Descriptor for `BlendModeProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List blendModeProtoDescriptor = $convert.base64Decode( + 'Cg5CbGVuZE1vZGVQcm90bxIaChZCTEVORF9NT0RFX1VOU1BFQ0lGSUVEEAASCQoFQ0xFQVIQAR' + 'IHCgNTUkMQAhIHCgNEU1QQAxIMCghTUkNfT1ZFUhAEEgwKCERTVF9PVkVSEAUSCgoGU1JDX0lO' + 'EAYSCgoGRFNUX0lOEAcSCwoHU1JDX09VVBAIEgsKB0RTVF9PVVQQCRIMCghTUkNfQVRPUBAKEg' + 'wKCERTVF9BVE9QEAsSBwoDWE9SEAwSCAoEUExVUxANEgwKCE1PRFVMQVRFEA4SCgoGU0NSRUVO' + 'EA8SCwoHT1ZFUkxBWRAQEgoKBkRBUktFThAREgsKB0xJR0hURU4QEhIPCgtDT0xPUl9ET0RHRR' + 'ATEg4KCkNPTE9SX0JVUk4QFBIOCgpIQVJEX0xJR0hUEBUSDgoKU09GVF9MSUdIVBAWEg4KCkRJ' + 'RkZFUkVOQ0UQFxINCglFWENMVVNJT04QGBIMCghNVUxUSVBMWRAZEgcKA0hVRRAaEg4KClNBVF' + 'VSQVRJT04QGxIJCgVDT0xPUhAcEg4KCkxVTUlOT1NJVFkQHQ=='); + +@$core.Deprecated('Use floatingActionButtonLocationProtoDescriptor instead') +const FloatingActionButtonLocationProto$json = { + '1': 'FloatingActionButtonLocationProto', + '2': [ + {'1': 'FAB_LOCATION_UNSPECIFIED', '2': 0}, + {'1': 'FAB_START_TOP', '2': 1}, + {'1': 'FAB_START', '2': 2}, + {'1': 'FAB_START_FLOAT', '2': 3}, + {'1': 'FAB_CENTER_TOP', '2': 4}, + {'1': 'FAB_CENTER', '2': 5}, + {'1': 'FAB_CENTER_FLOAT', '2': 6}, + {'1': 'FAB_END_TOP', '2': 7}, + {'1': 'FAB_END', '2': 8}, + {'1': 'FAB_END_FLOAT', '2': 9}, + {'1': 'FAB_MINI_CENTER_TOP', '2': 10}, + {'1': 'FAB_MINI_CENTER_FLOAT', '2': 11}, + {'1': 'FAB_MINI_START_TOP', '2': 12}, + {'1': 'FAB_MINI_START_FLOAT', '2': 13}, + {'1': 'FAB_MINI_END_TOP', '2': 14}, + {'1': 'FAB_MINI_END_FLOAT', '2': 15}, + ], +}; + +/// Descriptor for `FloatingActionButtonLocationProto`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List floatingActionButtonLocationProtoDescriptor = $convert.base64Decode( + 'CiFGbG9hdGluZ0FjdGlvbkJ1dHRvbkxvY2F0aW9uUHJvdG8SHAoYRkFCX0xPQ0FUSU9OX1VOU1' + 'BFQ0lGSUVEEAASEQoNRkFCX1NUQVJUX1RPUBABEg0KCUZBQl9TVEFSVBACEhMKD0ZBQl9TVEFS' + 'VF9GTE9BVBADEhIKDkZBQl9DRU5URVJfVE9QEAQSDgoKRkFCX0NFTlRFUhAFEhQKEEZBQl9DRU' + '5URVJfRkxPQVQQBhIPCgtGQUJfRU5EX1RPUBAHEgsKB0ZBQl9FTkQQCBIRCg1GQUJfRU5EX0ZM' + 'T0FUEAkSFwoTRkFCX01JTklfQ0VOVEVSX1RPUBAKEhkKFUZBQl9NSU5JX0NFTlRFUl9GTE9BVB' + 'ALEhYKEkZBQl9NSU5JX1NUQVJUX1RPUBAMEhgKFEZBQl9NSU5JX1NUQVJUX0ZMT0FUEA0SFAoQ' + 'RkFCX01JTklfRU5EX1RPUBAOEhYKEkZBQl9NSU5JX0VORF9GTE9BVBAP'); + +@$core.Deprecated('Use glimpseWidgetDataDescriptor instead') +const GlimpseWidgetData$json = { + '1': 'GlimpseWidgetData', + '2': [ + {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.flutter_glimpse.WidgetType', '10': 'type'}, + {'1': 'string_attributes', '3': 2, '4': 3, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData.StringAttributesEntry', '10': 'stringAttributes'}, + {'1': 'double_attributes', '3': 3, '4': 3, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData.DoubleAttributesEntry', '10': 'doubleAttributes'}, + {'1': 'bool_attributes', '3': 4, '4': 3, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData.BoolAttributesEntry', '10': 'boolAttributes'}, + {'1': 'int_attributes', '3': 5, '4': 3, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData.IntAttributesEntry', '10': 'intAttributes'}, + {'1': 'text_style', '3': 6, '4': 1, '5': 11, '6': '.flutter_glimpse.TextStyleData', '10': 'textStyle'}, + {'1': 'padding', '3': 7, '4': 1, '5': 11, '6': '.flutter_glimpse.EdgeInsetsData', '10': 'padding'}, + {'1': 'margin', '3': 8, '4': 1, '5': 11, '6': '.flutter_glimpse.EdgeInsetsData', '10': 'margin'}, + {'1': 'color', '3': 9, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '10': 'color'}, + {'1': 'icon', '3': 10, '4': 1, '5': 11, '6': '.flutter_glimpse.IconDataMessage', '10': 'icon'}, + {'1': 'box_decoration', '3': 11, '4': 1, '5': 11, '6': '.flutter_glimpse.BoxDecorationData', '10': 'boxDecoration'}, + {'1': 'children', '3': 12, '4': 3, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'children'}, + {'1': 'child', '3': 13, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'child'}, + {'1': 'app_bar', '3': 14, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'appBar'}, + {'1': 'body', '3': 15, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'body'}, + {'1': 'floating_action_button', '3': 16, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'floatingActionButton'}, + {'1': 'background_color', '3': 17, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '10': 'backgroundColor'}, + {'1': 'bottom_navigation_bar', '3': 18, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'bottomNavigationBar'}, + {'1': 'drawer', '3': 19, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'drawer'}, + {'1': 'end_drawer', '3': 20, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'endDrawer'}, + {'1': 'bottom_sheet', '3': 21, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'bottomSheet'}, + {'1': 'resize_to_avoid_bottom_inset', '3': 22, '4': 1, '5': 8, '10': 'resizeToAvoidBottomInset'}, + {'1': 'primary', '3': 23, '4': 1, '5': 8, '10': 'primary'}, + {'1': 'floating_action_button_location', '3': 24, '4': 1, '5': 14, '6': '.flutter_glimpse.FloatingActionButtonLocationProto', '10': 'floatingActionButtonLocation'}, + {'1': 'extend_body', '3': 25, '4': 1, '5': 8, '10': 'extendBody'}, + {'1': 'extend_body_behind_app_bar', '3': 26, '4': 1, '5': 8, '10': 'extendBodyBehindAppBar'}, + {'1': 'drawer_scrim_color', '3': 27, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '10': 'drawerScrimColor'}, + {'1': 'drawer_edge_drag_width', '3': 28, '4': 1, '5': 1, '10': 'drawerEdgeDragWidth'}, + {'1': 'drawer_enable_open_drag_gesture', '3': 29, '4': 1, '5': 8, '10': 'drawerEnableOpenDragGesture'}, + {'1': 'end_drawer_enable_open_drag_gesture', '3': 30, '4': 1, '5': 8, '10': 'endDrawerEnableOpenDragGesture'}, + {'1': 'main_axis_alignment', '3': 31, '4': 1, '5': 14, '6': '.flutter_glimpse.MainAxisAlignmentProto', '10': 'mainAxisAlignment'}, + {'1': 'cross_axis_alignment', '3': 32, '4': 1, '5': 14, '6': '.flutter_glimpse.CrossAxisAlignmentProto', '10': 'crossAxisAlignment'}, + {'1': 'main_axis_size', '3': 33, '4': 1, '5': 14, '6': '.flutter_glimpse.MainAxisSizeProto', '10': 'mainAxisSize'}, + {'1': 'text_direction', '3': 34, '4': 1, '5': 14, '6': '.flutter_glimpse.TextDirectionProto', '10': 'textDirection'}, + {'1': 'vertical_direction', '3': 35, '4': 1, '5': 14, '6': '.flutter_glimpse.VerticalDirectionProto', '10': 'verticalDirection'}, + {'1': 'text_baseline', '3': 36, '4': 1, '5': 14, '6': '.flutter_glimpse.TextBaselineProto', '10': 'textBaseline'}, + {'1': 'alignment', '3': 37, '4': 1, '5': 11, '6': '.flutter_glimpse.AlignmentData', '10': 'alignment'}, + {'1': 'constraints', '3': 38, '4': 1, '5': 11, '6': '.flutter_glimpse.BoxConstraintsData', '10': 'constraints'}, + {'1': 'transform', '3': 39, '4': 1, '5': 11, '6': '.flutter_glimpse.TransformData', '10': 'transform'}, + {'1': 'transform_alignment', '3': 40, '4': 1, '5': 11, '6': '.flutter_glimpse.AlignmentData', '10': 'transformAlignment'}, + {'1': 'clip_behavior', '3': 41, '4': 1, '5': 14, '6': '.flutter_glimpse.ClipProto', '10': 'clipBehavior'}, + {'1': 'text_align', '3': 42, '4': 1, '5': 14, '6': '.flutter_glimpse.TextAlignProto', '10': 'textAlign'}, + {'1': 'overflow', '3': 43, '4': 1, '5': 14, '6': '.flutter_glimpse.TextOverflowProto', '10': 'overflow'}, + {'1': 'max_lines', '3': 44, '4': 1, '5': 5, '10': 'maxLines'}, + {'1': 'soft_wrap', '3': 45, '4': 1, '5': 8, '10': 'softWrap'}, + {'1': 'letter_spacing', '3': 46, '4': 1, '5': 1, '10': 'letterSpacing'}, + {'1': 'word_spacing', '3': 47, '4': 1, '5': 1, '10': 'wordSpacing'}, + {'1': 'height', '3': 48, '4': 1, '5': 1, '10': 'height'}, + {'1': 'font_family', '3': 49, '4': 1, '5': 9, '10': 'fontFamily'}, + {'1': 'repeat', '3': 50, '4': 1, '5': 14, '6': '.flutter_glimpse.ImageRepeatProto', '10': 'repeat'}, + {'1': 'color_blend_mode', '3': 51, '4': 1, '5': 14, '6': '.flutter_glimpse.BlendModeProto', '10': 'colorBlendMode'}, + {'1': 'center_slice', '3': 52, '4': 1, '5': 11, '6': '.flutter_glimpse.RectData', '10': 'centerSlice'}, + {'1': 'match_text_direction', '3': 53, '4': 1, '5': 8, '10': 'matchTextDirection'}, + {'1': 'gapless_playback', '3': 54, '4': 1, '5': 8, '10': 'gaplessPlayback'}, + {'1': 'filter_quality', '3': 55, '4': 1, '5': 14, '6': '.flutter_glimpse.FilterQualityProto', '10': 'filterQuality'}, + {'1': 'cache_width', '3': 56, '4': 1, '5': 5, '10': 'cacheWidth'}, + {'1': 'cache_height', '3': 57, '4': 1, '5': 5, '10': 'cacheHeight'}, + {'1': 'scale', '3': 58, '4': 1, '5': 1, '10': 'scale'}, + {'1': 'semantic_label', '3': 59, '4': 1, '5': 9, '10': 'semanticLabel'}, + {'1': 'error_widget', '3': 60, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'errorWidget'}, + {'1': 'loading_widget', '3': 61, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'loadingWidget'}, + {'1': 'opacity', '3': 62, '4': 1, '5': 1, '10': 'opacity'}, + {'1': 'apply_text_scaling', '3': 63, '4': 1, '5': 8, '10': 'applyTextScaling'}, + {'1': 'shadows', '3': 64, '4': 3, '5': 11, '6': '.flutter_glimpse.ShadowData', '10': 'shadows'}, + {'1': 'title_widget', '3': 65, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'titleWidget'}, + {'1': 'foreground_color', '3': 66, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '10': 'foregroundColor'}, + {'1': 'actions', '3': 67, '4': 3, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'actions'}, + {'1': 'leading', '3': 68, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'leading'}, + {'1': 'bottom', '3': 69, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'bottom'}, + {'1': 'toolbar_height', '3': 70, '4': 1, '5': 1, '10': 'toolbarHeight'}, + {'1': 'leading_width', '3': 71, '4': 1, '5': 1, '10': 'leadingWidth'}, + {'1': 'automatically_imply_leading', '3': 72, '4': 1, '5': 8, '10': 'automaticallyImplyLeading'}, + {'1': 'flexible_space', '3': 73, '4': 1, '5': 11, '6': '.flutter_glimpse.GlimpseWidgetData', '10': 'flexibleSpace'}, + {'1': 'title_spacing', '3': 74, '4': 1, '5': 1, '10': 'titleSpacing'}, + {'1': 'toolbar_opacity', '3': 75, '4': 1, '5': 1, '10': 'toolbarOpacity'}, + {'1': 'bottom_opacity', '3': 76, '4': 1, '5': 1, '10': 'bottomOpacity'}, + ], + '3': [GlimpseWidgetData_StringAttributesEntry$json, GlimpseWidgetData_DoubleAttributesEntry$json, GlimpseWidgetData_BoolAttributesEntry$json, GlimpseWidgetData_IntAttributesEntry$json], +}; + +@$core.Deprecated('Use glimpseWidgetDataDescriptor instead') +const GlimpseWidgetData_StringAttributesEntry$json = { + '1': 'StringAttributesEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +@$core.Deprecated('Use glimpseWidgetDataDescriptor instead') +const GlimpseWidgetData_DoubleAttributesEntry$json = { + '1': 'DoubleAttributesEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 1, '10': 'value'}, + ], + '7': {'7': true}, +}; + +@$core.Deprecated('Use glimpseWidgetDataDescriptor instead') +const GlimpseWidgetData_BoolAttributesEntry$json = { + '1': 'BoolAttributesEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 8, '10': 'value'}, + ], + '7': {'7': true}, +}; + +@$core.Deprecated('Use glimpseWidgetDataDescriptor instead') +const GlimpseWidgetData_IntAttributesEntry$json = { + '1': 'IntAttributesEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 5, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `GlimpseWidgetData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List glimpseWidgetDataDescriptor = $convert.base64Decode( + 'ChFHbGltcHNlV2lkZ2V0RGF0YRIvCgR0eXBlGAEgASgOMhsuZmx1dHRlcl9nbGltcHNlLldpZG' + 'dldFR5cGVSBHR5cGUSZQoRc3RyaW5nX2F0dHJpYnV0ZXMYAiADKAsyOC5mbHV0dGVyX2dsaW1w' + 'c2UuR2xpbXBzZVdpZGdldERhdGEuU3RyaW5nQXR0cmlidXRlc0VudHJ5UhBzdHJpbmdBdHRyaW' + 'J1dGVzEmUKEWRvdWJsZV9hdHRyaWJ1dGVzGAMgAygLMjguZmx1dHRlcl9nbGltcHNlLkdsaW1w' + 'c2VXaWRnZXREYXRhLkRvdWJsZUF0dHJpYnV0ZXNFbnRyeVIQZG91YmxlQXR0cmlidXRlcxJfCg' + '9ib29sX2F0dHJpYnV0ZXMYBCADKAsyNi5mbHV0dGVyX2dsaW1wc2UuR2xpbXBzZVdpZGdldERh' + 'dGEuQm9vbEF0dHJpYnV0ZXNFbnRyeVIOYm9vbEF0dHJpYnV0ZXMSXAoOaW50X2F0dHJpYnV0ZX' + 'MYBSADKAsyNS5mbHV0dGVyX2dsaW1wc2UuR2xpbXBzZVdpZGdldERhdGEuSW50QXR0cmlidXRl' + 'c0VudHJ5Ug1pbnRBdHRyaWJ1dGVzEj0KCnRleHRfc3R5bGUYBiABKAsyHi5mbHV0dGVyX2dsaW' + '1wc2UuVGV4dFN0eWxlRGF0YVIJdGV4dFN0eWxlEjkKB3BhZGRpbmcYByABKAsyHy5mbHV0dGVy' + 'X2dsaW1wc2UuRWRnZUluc2V0c0RhdGFSB3BhZGRpbmcSNwoGbWFyZ2luGAggASgLMh8uZmx1dH' + 'Rlcl9nbGltcHNlLkVkZ2VJbnNldHNEYXRhUgZtYXJnaW4SMAoFY29sb3IYCSABKAsyGi5mbHV0' + 'dGVyX2dsaW1wc2UuQ29sb3JEYXRhUgVjb2xvchI0CgRpY29uGAogASgLMiAuZmx1dHRlcl9nbG' + 'ltcHNlLkljb25EYXRhTWVzc2FnZVIEaWNvbhJJCg5ib3hfZGVjb3JhdGlvbhgLIAEoCzIiLmZs' + 'dXR0ZXJfZ2xpbXBzZS5Cb3hEZWNvcmF0aW9uRGF0YVINYm94RGVjb3JhdGlvbhI+CghjaGlsZH' + 'JlbhgMIAMoCzIiLmZsdXR0ZXJfZ2xpbXBzZS5HbGltcHNlV2lkZ2V0RGF0YVIIY2hpbGRyZW4S' + 'OAoFY2hpbGQYDSABKAsyIi5mbHV0dGVyX2dsaW1wc2UuR2xpbXBzZVdpZGdldERhdGFSBWNoaW' + 'xkEjsKB2FwcF9iYXIYDiABKAsyIi5mbHV0dGVyX2dsaW1wc2UuR2xpbXBzZVdpZGdldERhdGFS' + 'BmFwcEJhchI2CgRib2R5GA8gASgLMiIuZmx1dHRlcl9nbGltcHNlLkdsaW1wc2VXaWRnZXREYX' + 'RhUgRib2R5ElgKFmZsb2F0aW5nX2FjdGlvbl9idXR0b24YECABKAsyIi5mbHV0dGVyX2dsaW1w' + 'c2UuR2xpbXBzZVdpZGdldERhdGFSFGZsb2F0aW5nQWN0aW9uQnV0dG9uEkUKEGJhY2tncm91bm' + 'RfY29sb3IYESABKAsyGi5mbHV0dGVyX2dsaW1wc2UuQ29sb3JEYXRhUg9iYWNrZ3JvdW5kQ29s' + 'b3ISVgoVYm90dG9tX25hdmlnYXRpb25fYmFyGBIgASgLMiIuZmx1dHRlcl9nbGltcHNlLkdsaW' + '1wc2VXaWRnZXREYXRhUhNib3R0b21OYXZpZ2F0aW9uQmFyEjoKBmRyYXdlchgTIAEoCzIiLmZs' + 'dXR0ZXJfZ2xpbXBzZS5HbGltcHNlV2lkZ2V0RGF0YVIGZHJhd2VyEkEKCmVuZF9kcmF3ZXIYFC' + 'ABKAsyIi5mbHV0dGVyX2dsaW1wc2UuR2xpbXBzZVdpZGdldERhdGFSCWVuZERyYXdlchJFCgxi' + 'b3R0b21fc2hlZXQYFSABKAsyIi5mbHV0dGVyX2dsaW1wc2UuR2xpbXBzZVdpZGdldERhdGFSC2' + 'JvdHRvbVNoZWV0Ej4KHHJlc2l6ZV90b19hdm9pZF9ib3R0b21faW5zZXQYFiABKAhSGHJlc2l6' + 'ZVRvQXZvaWRCb3R0b21JbnNldBIYCgdwcmltYXJ5GBcgASgIUgdwcmltYXJ5EnkKH2Zsb2F0aW' + '5nX2FjdGlvbl9idXR0b25fbG9jYXRpb24YGCABKA4yMi5mbHV0dGVyX2dsaW1wc2UuRmxvYXRp' + 'bmdBY3Rpb25CdXR0b25Mb2NhdGlvblByb3RvUhxmbG9hdGluZ0FjdGlvbkJ1dHRvbkxvY2F0aW' + '9uEh8KC2V4dGVuZF9ib2R5GBkgASgIUgpleHRlbmRCb2R5EjoKGmV4dGVuZF9ib2R5X2JlaGlu' + 'ZF9hcHBfYmFyGBogASgIUhZleHRlbmRCb2R5QmVoaW5kQXBwQmFyEkgKEmRyYXdlcl9zY3JpbV' + '9jb2xvchgbIAEoCzIaLmZsdXR0ZXJfZ2xpbXBzZS5Db2xvckRhdGFSEGRyYXdlclNjcmltQ29s' + 'b3ISMwoWZHJhd2VyX2VkZ2VfZHJhZ193aWR0aBgcIAEoAVITZHJhd2VyRWRnZURyYWdXaWR0aB' + 'JECh9kcmF3ZXJfZW5hYmxlX29wZW5fZHJhZ19nZXN0dXJlGB0gASgIUhtkcmF3ZXJFbmFibGVP' + 'cGVuRHJhZ0dlc3R1cmUSSwojZW5kX2RyYXdlcl9lbmFibGVfb3Blbl9kcmFnX2dlc3R1cmUYHi' + 'ABKAhSHmVuZERyYXdlckVuYWJsZU9wZW5EcmFnR2VzdHVyZRJXChNtYWluX2F4aXNfYWxpZ25t' + 'ZW50GB8gASgOMicuZmx1dHRlcl9nbGltcHNlLk1haW5BeGlzQWxpZ25tZW50UHJvdG9SEW1haW' + '5BeGlzQWxpZ25tZW50EloKFGNyb3NzX2F4aXNfYWxpZ25tZW50GCAgASgOMiguZmx1dHRlcl9n' + 'bGltcHNlLkNyb3NzQXhpc0FsaWdubWVudFByb3RvUhJjcm9zc0F4aXNBbGlnbm1lbnQSSAoObW' + 'Fpbl9heGlzX3NpemUYISABKA4yIi5mbHV0dGVyX2dsaW1wc2UuTWFpbkF4aXNTaXplUHJvdG9S' + 'DG1haW5BeGlzU2l6ZRJKCg50ZXh0X2RpcmVjdGlvbhgiIAEoDjIjLmZsdXR0ZXJfZ2xpbXBzZS' + '5UZXh0RGlyZWN0aW9uUHJvdG9SDXRleHREaXJlY3Rpb24SVgoSdmVydGljYWxfZGlyZWN0aW9u' + 'GCMgASgOMicuZmx1dHRlcl9nbGltcHNlLlZlcnRpY2FsRGlyZWN0aW9uUHJvdG9SEXZlcnRpY2' + 'FsRGlyZWN0aW9uEkcKDXRleHRfYmFzZWxpbmUYJCABKA4yIi5mbHV0dGVyX2dsaW1wc2UuVGV4' + 'dEJhc2VsaW5lUHJvdG9SDHRleHRCYXNlbGluZRI8CglhbGlnbm1lbnQYJSABKAsyHi5mbHV0dG' + 'VyX2dsaW1wc2UuQWxpZ25tZW50RGF0YVIJYWxpZ25tZW50EkUKC2NvbnN0cmFpbnRzGCYgASgL' + 'MiMuZmx1dHRlcl9nbGltcHNlLkJveENvbnN0cmFpbnRzRGF0YVILY29uc3RyYWludHMSPAoJdH' + 'JhbnNmb3JtGCcgASgLMh4uZmx1dHRlcl9nbGltcHNlLlRyYW5zZm9ybURhdGFSCXRyYW5zZm9y' + 'bRJPChN0cmFuc2Zvcm1fYWxpZ25tZW50GCggASgLMh4uZmx1dHRlcl9nbGltcHNlLkFsaWdubW' + 'VudERhdGFSEnRyYW5zZm9ybUFsaWdubWVudBI/Cg1jbGlwX2JlaGF2aW9yGCkgASgOMhouZmx1' + 'dHRlcl9nbGltcHNlLkNsaXBQcm90b1IMY2xpcEJlaGF2aW9yEj4KCnRleHRfYWxpZ24YKiABKA' + '4yHy5mbHV0dGVyX2dsaW1wc2UuVGV4dEFsaWduUHJvdG9SCXRleHRBbGlnbhI+CghvdmVyZmxv' + 'dxgrIAEoDjIiLmZsdXR0ZXJfZ2xpbXBzZS5UZXh0T3ZlcmZsb3dQcm90b1IIb3ZlcmZsb3cSGw' + 'oJbWF4X2xpbmVzGCwgASgFUghtYXhMaW5lcxIbCglzb2Z0X3dyYXAYLSABKAhSCHNvZnRXcmFw' + 'EiUKDmxldHRlcl9zcGFjaW5nGC4gASgBUg1sZXR0ZXJTcGFjaW5nEiEKDHdvcmRfc3BhY2luZx' + 'gvIAEoAVILd29yZFNwYWNpbmcSFgoGaGVpZ2h0GDAgASgBUgZoZWlnaHQSHwoLZm9udF9mYW1p' + 'bHkYMSABKAlSCmZvbnRGYW1pbHkSOQoGcmVwZWF0GDIgASgOMiEuZmx1dHRlcl9nbGltcHNlLk' + 'ltYWdlUmVwZWF0UHJvdG9SBnJlcGVhdBJJChBjb2xvcl9ibGVuZF9tb2RlGDMgASgOMh8uZmx1' + 'dHRlcl9nbGltcHNlLkJsZW5kTW9kZVByb3RvUg5jb2xvckJsZW5kTW9kZRI8CgxjZW50ZXJfc2' + 'xpY2UYNCABKAsyGS5mbHV0dGVyX2dsaW1wc2UuUmVjdERhdGFSC2NlbnRlclNsaWNlEjAKFG1h' + 'dGNoX3RleHRfZGlyZWN0aW9uGDUgASgIUhJtYXRjaFRleHREaXJlY3Rpb24SKQoQZ2FwbGVzc1' + '9wbGF5YmFjaxg2IAEoCFIPZ2FwbGVzc1BsYXliYWNrEkoKDmZpbHRlcl9xdWFsaXR5GDcgASgO' + 'MiMuZmx1dHRlcl9nbGltcHNlLkZpbHRlclF1YWxpdHlQcm90b1INZmlsdGVyUXVhbGl0eRIfCg' + 'tjYWNoZV93aWR0aBg4IAEoBVIKY2FjaGVXaWR0aBIhCgxjYWNoZV9oZWlnaHQYOSABKAVSC2Nh' + 'Y2hlSGVpZ2h0EhQKBXNjYWxlGDogASgBUgVzY2FsZRIlCg5zZW1hbnRpY19sYWJlbBg7IAEoCV' + 'INc2VtYW50aWNMYWJlbBJFCgxlcnJvcl93aWRnZXQYPCABKAsyIi5mbHV0dGVyX2dsaW1wc2Uu' + 'R2xpbXBzZVdpZGdldERhdGFSC2Vycm9yV2lkZ2V0EkkKDmxvYWRpbmdfd2lkZ2V0GD0gASgLMi' + 'IuZmx1dHRlcl9nbGltcHNlLkdsaW1wc2VXaWRnZXREYXRhUg1sb2FkaW5nV2lkZ2V0EhgKB29w' + 'YWNpdHkYPiABKAFSB29wYWNpdHkSLAoSYXBwbHlfdGV4dF9zY2FsaW5nGD8gASgIUhBhcHBseV' + 'RleHRTY2FsaW5nEjUKB3NoYWRvd3MYQCADKAsyGy5mbHV0dGVyX2dsaW1wc2UuU2hhZG93RGF0' + 'YVIHc2hhZG93cxJFCgx0aXRsZV93aWRnZXQYQSABKAsyIi5mbHV0dGVyX2dsaW1wc2UuR2xpbX' + 'BzZVdpZGdldERhdGFSC3RpdGxlV2lkZ2V0EkUKEGZvcmVncm91bmRfY29sb3IYQiABKAsyGi5m' + 'bHV0dGVyX2dsaW1wc2UuQ29sb3JEYXRhUg9mb3JlZ3JvdW5kQ29sb3ISPAoHYWN0aW9ucxhDIA' + 'MoCzIiLmZsdXR0ZXJfZ2xpbXBzZS5HbGltcHNlV2lkZ2V0RGF0YVIHYWN0aW9ucxI8CgdsZWFk' + 'aW5nGEQgASgLMiIuZmx1dHRlcl9nbGltcHNlLkdsaW1wc2VXaWRnZXREYXRhUgdsZWFkaW5nEj' + 'oKBmJvdHRvbRhFIAEoCzIiLmZsdXR0ZXJfZ2xpbXBzZS5HbGltcHNlV2lkZ2V0RGF0YVIGYm90' + 'dG9tEiUKDnRvb2xiYXJfaGVpZ2h0GEYgASgBUg10b29sYmFySGVpZ2h0EiMKDWxlYWRpbmdfd2' + 'lkdGgYRyABKAFSDGxlYWRpbmdXaWR0aBI+ChthdXRvbWF0aWNhbGx5X2ltcGx5X2xlYWRpbmcY' + 'SCABKAhSGWF1dG9tYXRpY2FsbHlJbXBseUxlYWRpbmcSSQoOZmxleGlibGVfc3BhY2UYSSABKA' + 'syIi5mbHV0dGVyX2dsaW1wc2UuR2xpbXBzZVdpZGdldERhdGFSDWZsZXhpYmxlU3BhY2USIwoN' + 'dGl0bGVfc3BhY2luZxhKIAEoAVIMdGl0bGVTcGFjaW5nEicKD3Rvb2xiYXJfb3BhY2l0eRhLIA' + 'EoAVIOdG9vbGJhck9wYWNpdHkSJQoOYm90dG9tX29wYWNpdHkYTCABKAFSDWJvdHRvbU9wYWNp' + 'dHkaQwoVU3RyaW5nQXR0cmlidXRlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGA' + 'IgASgJUgV2YWx1ZToCOAEaQwoVRG91YmxlQXR0cmlidXRlc0VudHJ5EhAKA2tleRgBIAEoCVID' + 'a2V5EhQKBXZhbHVlGAIgASgBUgV2YWx1ZToCOAEaQQoTQm9vbEF0dHJpYnV0ZXNFbnRyeRIQCg' + 'NrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCFIFdmFsdWU6AjgBGkAKEkludEF0dHJpYnV0' + 'ZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU6AjgB'); + +@$core.Deprecated('Use colorDataDescriptor instead') +const ColorData$json = { + '1': 'ColorData', + '2': [ + {'1': 'alpha', '3': 1, '4': 1, '5': 5, '10': 'alpha'}, + {'1': 'red', '3': 2, '4': 1, '5': 5, '10': 'red'}, + {'1': 'green', '3': 3, '4': 1, '5': 5, '10': 'green'}, + {'1': 'blue', '3': 4, '4': 1, '5': 5, '10': 'blue'}, + ], +}; + +/// Descriptor for `ColorData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List colorDataDescriptor = $convert.base64Decode( + 'CglDb2xvckRhdGESFAoFYWxwaGEYASABKAVSBWFscGhhEhAKA3JlZBgCIAEoBVIDcmVkEhQKBW' + 'dyZWVuGAMgASgFUgVncmVlbhISCgRibHVlGAQgASgFUgRibHVl'); + +@$core.Deprecated('Use edgeInsetsDataDescriptor instead') +const EdgeInsetsData$json = { + '1': 'EdgeInsetsData', + '2': [ + {'1': 'left', '3': 1, '4': 1, '5': 1, '9': 0, '10': 'left', '17': true}, + {'1': 'top', '3': 2, '4': 1, '5': 1, '9': 1, '10': 'top', '17': true}, + {'1': 'right', '3': 3, '4': 1, '5': 1, '9': 2, '10': 'right', '17': true}, + {'1': 'bottom', '3': 4, '4': 1, '5': 1, '9': 3, '10': 'bottom', '17': true}, + {'1': 'all', '3': 5, '4': 1, '5': 1, '9': 4, '10': 'all', '17': true}, + ], + '8': [ + {'1': '_left'}, + {'1': '_top'}, + {'1': '_right'}, + {'1': '_bottom'}, + {'1': '_all'}, + ], +}; + +/// Descriptor for `EdgeInsetsData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List edgeInsetsDataDescriptor = $convert.base64Decode( + 'Cg5FZGdlSW5zZXRzRGF0YRIXCgRsZWZ0GAEgASgBSABSBGxlZnSIAQESFQoDdG9wGAIgASgBSA' + 'FSA3RvcIgBARIZCgVyaWdodBgDIAEoAUgCUgVyaWdodIgBARIbCgZib3R0b20YBCABKAFIA1IG' + 'Ym90dG9tiAEBEhUKA2FsbBgFIAEoAUgEUgNhbGyIAQFCBwoFX2xlZnRCBgoEX3RvcEIICgZfcm' + 'lnaHRCCQoHX2JvdHRvbUIGCgRfYWxs'); + +@$core.Deprecated('Use textStyleDataDescriptor instead') +const TextStyleData$json = { + '1': 'TextStyleData', + '2': [ + {'1': 'color', '3': 1, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '9': 0, '10': 'color', '17': true}, + {'1': 'font_size', '3': 2, '4': 1, '5': 1, '9': 1, '10': 'fontSize', '17': true}, + {'1': 'font_weight', '3': 3, '4': 1, '5': 9, '9': 2, '10': 'fontWeight', '17': true}, + {'1': 'decoration', '3': 4, '4': 1, '5': 14, '6': '.flutter_glimpse.TextDecorationProto', '9': 3, '10': 'decoration', '17': true}, + {'1': 'letter_spacing', '3': 5, '4': 1, '5': 1, '9': 4, '10': 'letterSpacing', '17': true}, + {'1': 'word_spacing', '3': 6, '4': 1, '5': 1, '9': 5, '10': 'wordSpacing', '17': true}, + {'1': 'height', '3': 7, '4': 1, '5': 1, '9': 6, '10': 'height', '17': true}, + {'1': 'font_family', '3': 8, '4': 1, '5': 9, '9': 7, '10': 'fontFamily', '17': true}, + {'1': 'font_style', '3': 9, '4': 1, '5': 14, '6': '.flutter_glimpse.FontStyleProto', '9': 8, '10': 'fontStyle', '17': true}, + ], + '8': [ + {'1': '_color'}, + {'1': '_font_size'}, + {'1': '_font_weight'}, + {'1': '_decoration'}, + {'1': '_letter_spacing'}, + {'1': '_word_spacing'}, + {'1': '_height'}, + {'1': '_font_family'}, + {'1': '_font_style'}, + ], +}; + +/// Descriptor for `TextStyleData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List textStyleDataDescriptor = $convert.base64Decode( + 'Cg1UZXh0U3R5bGVEYXRhEjUKBWNvbG9yGAEgASgLMhouZmx1dHRlcl9nbGltcHNlLkNvbG9yRG' + 'F0YUgAUgVjb2xvcogBARIgCglmb250X3NpemUYAiABKAFIAVIIZm9udFNpemWIAQESJAoLZm9u' + 'dF93ZWlnaHQYAyABKAlIAlIKZm9udFdlaWdodIgBARJJCgpkZWNvcmF0aW9uGAQgASgOMiQuZm' + 'x1dHRlcl9nbGltcHNlLlRleHREZWNvcmF0aW9uUHJvdG9IA1IKZGVjb3JhdGlvbogBARIqCg5s' + 'ZXR0ZXJfc3BhY2luZxgFIAEoAUgEUg1sZXR0ZXJTcGFjaW5niAEBEiYKDHdvcmRfc3BhY2luZx' + 'gGIAEoAUgFUgt3b3JkU3BhY2luZ4gBARIbCgZoZWlnaHQYByABKAFIBlIGaGVpZ2h0iAEBEiQK' + 'C2ZvbnRfZmFtaWx5GAggASgJSAdSCmZvbnRGYW1pbHmIAQESQwoKZm9udF9zdHlsZRgJIAEoDj' + 'IfLmZsdXR0ZXJfZ2xpbXBzZS5Gb250U3R5bGVQcm90b0gIUglmb250U3R5bGWIAQFCCAoGX2Nv' + 'bG9yQgwKCl9mb250X3NpemVCDgoMX2ZvbnRfd2VpZ2h0Qg0KC19kZWNvcmF0aW9uQhEKD19sZX' + 'R0ZXJfc3BhY2luZ0IPCg1fd29yZF9zcGFjaW5nQgkKB19oZWlnaHRCDgoMX2ZvbnRfZmFtaWx5' + 'Qg0KC19mb250X3N0eWxl'); + +@$core.Deprecated('Use iconDataMessageDescriptor instead') +const IconDataMessage$json = { + '1': 'IconDataMessage', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'name', '17': true}, + {'1': 'code_point', '3': 2, '4': 1, '5': 5, '9': 1, '10': 'codePoint', '17': true}, + {'1': 'font_family', '3': 3, '4': 1, '5': 9, '9': 2, '10': 'fontFamily', '17': true}, + {'1': 'color', '3': 4, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '9': 3, '10': 'color', '17': true}, + {'1': 'size', '3': 5, '4': 1, '5': 1, '9': 4, '10': 'size', '17': true}, + ], + '8': [ + {'1': '_name'}, + {'1': '_code_point'}, + {'1': '_font_family'}, + {'1': '_color'}, + {'1': '_size'}, + ], +}; + +/// Descriptor for `IconDataMessage`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List iconDataMessageDescriptor = $convert.base64Decode( + 'Cg9JY29uRGF0YU1lc3NhZ2USFwoEbmFtZRgBIAEoCUgAUgRuYW1liAEBEiIKCmNvZGVfcG9pbn' + 'QYAiABKAVIAVIJY29kZVBvaW50iAEBEiQKC2ZvbnRfZmFtaWx5GAMgASgJSAJSCmZvbnRGYW1p' + 'bHmIAQESNQoFY29sb3IYBCABKAsyGi5mbHV0dGVyX2dsaW1wc2UuQ29sb3JEYXRhSANSBWNvbG' + '9yiAEBEhcKBHNpemUYBSABKAFIBFIEc2l6ZYgBAUIHCgVfbmFtZUINCgtfY29kZV9wb2ludEIO' + 'CgxfZm9udF9mYW1pbHlCCAoGX2NvbG9yQgcKBV9zaXpl'); + +@$core.Deprecated('Use boxDecorationDataDescriptor instead') +const BoxDecorationData$json = { + '1': 'BoxDecorationData', + '2': [ + {'1': 'color', '3': 1, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '9': 0, '10': 'color', '17': true}, + {'1': 'border_radius', '3': 2, '4': 1, '5': 11, '6': '.flutter_glimpse.BorderRadiusData', '9': 1, '10': 'borderRadius', '17': true}, + {'1': 'border', '3': 3, '4': 1, '5': 11, '6': '.flutter_glimpse.BorderData', '9': 2, '10': 'border', '17': true}, + {'1': 'box_shadow', '3': 4, '4': 3, '5': 11, '6': '.flutter_glimpse.BoxShadowData', '10': 'boxShadow'}, + {'1': 'gradient', '3': 5, '4': 1, '5': 11, '6': '.flutter_glimpse.GradientData', '9': 3, '10': 'gradient', '17': true}, + {'1': 'shape', '3': 6, '4': 1, '5': 14, '6': '.flutter_glimpse.BoxShapeProto', '9': 4, '10': 'shape', '17': true}, + {'1': 'image', '3': 7, '4': 1, '5': 11, '6': '.flutter_glimpse.DecorationImageData', '9': 5, '10': 'image', '17': true}, + ], + '8': [ + {'1': '_color'}, + {'1': '_border_radius'}, + {'1': '_border'}, + {'1': '_gradient'}, + {'1': '_shape'}, + {'1': '_image'}, + ], +}; + +/// Descriptor for `BoxDecorationData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List boxDecorationDataDescriptor = $convert.base64Decode( + 'ChFCb3hEZWNvcmF0aW9uRGF0YRI1CgVjb2xvchgBIAEoCzIaLmZsdXR0ZXJfZ2xpbXBzZS5Db2' + 'xvckRhdGFIAFIFY29sb3KIAQESSwoNYm9yZGVyX3JhZGl1cxgCIAEoCzIhLmZsdXR0ZXJfZ2xp' + 'bXBzZS5Cb3JkZXJSYWRpdXNEYXRhSAFSDGJvcmRlclJhZGl1c4gBARI4CgZib3JkZXIYAyABKA' + 'syGy5mbHV0dGVyX2dsaW1wc2UuQm9yZGVyRGF0YUgCUgZib3JkZXKIAQESPQoKYm94X3NoYWRv' + 'dxgEIAMoCzIeLmZsdXR0ZXJfZ2xpbXBzZS5Cb3hTaGFkb3dEYXRhUglib3hTaGFkb3cSPgoIZ3' + 'JhZGllbnQYBSABKAsyHS5mbHV0dGVyX2dsaW1wc2UuR3JhZGllbnREYXRhSANSCGdyYWRpZW50' + 'iAEBEjkKBXNoYXBlGAYgASgOMh4uZmx1dHRlcl9nbGltcHNlLkJveFNoYXBlUHJvdG9IBFIFc2' + 'hhcGWIAQESPwoFaW1hZ2UYByABKAsyJC5mbHV0dGVyX2dsaW1wc2UuRGVjb3JhdGlvbkltYWdl' + 'RGF0YUgFUgVpbWFnZYgBAUIICgZfY29sb3JCEAoOX2JvcmRlcl9yYWRpdXNCCQoHX2JvcmRlck' + 'ILCglfZ3JhZGllbnRCCAoGX3NoYXBlQggKBl9pbWFnZQ=='); + +@$core.Deprecated('Use borderRadiusDataDescriptor instead') +const BorderRadiusData$json = { + '1': 'BorderRadiusData', + '2': [ + {'1': 'all', '3': 1, '4': 1, '5': 1, '9': 0, '10': 'all', '17': true}, + {'1': 'top_left', '3': 2, '4': 1, '5': 1, '9': 1, '10': 'topLeft', '17': true}, + {'1': 'top_right', '3': 3, '4': 1, '5': 1, '9': 2, '10': 'topRight', '17': true}, + {'1': 'bottom_left', '3': 4, '4': 1, '5': 1, '9': 3, '10': 'bottomLeft', '17': true}, + {'1': 'bottom_right', '3': 5, '4': 1, '5': 1, '9': 4, '10': 'bottomRight', '17': true}, + ], + '8': [ + {'1': '_all'}, + {'1': '_top_left'}, + {'1': '_top_right'}, + {'1': '_bottom_left'}, + {'1': '_bottom_right'}, + ], +}; + +/// Descriptor for `BorderRadiusData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List borderRadiusDataDescriptor = $convert.base64Decode( + 'ChBCb3JkZXJSYWRpdXNEYXRhEhUKA2FsbBgBIAEoAUgAUgNhbGyIAQESHgoIdG9wX2xlZnQYAi' + 'ABKAFIAVIHdG9wTGVmdIgBARIgCgl0b3BfcmlnaHQYAyABKAFIAlIIdG9wUmlnaHSIAQESJAoL' + 'Ym90dG9tX2xlZnQYBCABKAFIA1IKYm90dG9tTGVmdIgBARImCgxib3R0b21fcmlnaHQYBSABKA' + 'FIBFILYm90dG9tUmlnaHSIAQFCBgoEX2FsbEILCglfdG9wX2xlZnRCDAoKX3RvcF9yaWdodEIO' + 'CgxfYm90dG9tX2xlZnRCDwoNX2JvdHRvbV9yaWdodA=='); + +@$core.Deprecated('Use borderSideDataDescriptor instead') +const BorderSideData$json = { + '1': 'BorderSideData', + '2': [ + {'1': 'color', '3': 1, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '9': 0, '10': 'color', '17': true}, + {'1': 'width', '3': 2, '4': 1, '5': 1, '9': 1, '10': 'width', '17': true}, + {'1': 'style', '3': 3, '4': 1, '5': 14, '6': '.flutter_glimpse.BorderStyleProto', '9': 2, '10': 'style', '17': true}, + ], + '8': [ + {'1': '_color'}, + {'1': '_width'}, + {'1': '_style'}, + ], +}; + +/// Descriptor for `BorderSideData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List borderSideDataDescriptor = $convert.base64Decode( + 'Cg5Cb3JkZXJTaWRlRGF0YRI1CgVjb2xvchgBIAEoCzIaLmZsdXR0ZXJfZ2xpbXBzZS5Db2xvck' + 'RhdGFIAFIFY29sb3KIAQESGQoFd2lkdGgYAiABKAFIAVIFd2lkdGiIAQESPAoFc3R5bGUYAyAB' + 'KA4yIS5mbHV0dGVyX2dsaW1wc2UuQm9yZGVyU3R5bGVQcm90b0gCUgVzdHlsZYgBAUIICgZfY2' + '9sb3JCCAoGX3dpZHRoQggKBl9zdHlsZQ=='); + +@$core.Deprecated('Use borderDataDescriptor instead') +const BorderData$json = { + '1': 'BorderData', + '2': [ + {'1': 'top', '3': 1, '4': 1, '5': 11, '6': '.flutter_glimpse.BorderSideData', '9': 0, '10': 'top', '17': true}, + {'1': 'right', '3': 2, '4': 1, '5': 11, '6': '.flutter_glimpse.BorderSideData', '9': 1, '10': 'right', '17': true}, + {'1': 'bottom', '3': 3, '4': 1, '5': 11, '6': '.flutter_glimpse.BorderSideData', '9': 2, '10': 'bottom', '17': true}, + {'1': 'left', '3': 4, '4': 1, '5': 11, '6': '.flutter_glimpse.BorderSideData', '9': 3, '10': 'left', '17': true}, + {'1': 'all', '3': 5, '4': 1, '5': 11, '6': '.flutter_glimpse.BorderSideData', '9': 4, '10': 'all', '17': true}, + ], + '8': [ + {'1': '_top'}, + {'1': '_right'}, + {'1': '_bottom'}, + {'1': '_left'}, + {'1': '_all'}, + ], +}; + +/// Descriptor for `BorderData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List borderDataDescriptor = $convert.base64Decode( + 'CgpCb3JkZXJEYXRhEjYKA3RvcBgBIAEoCzIfLmZsdXR0ZXJfZ2xpbXBzZS5Cb3JkZXJTaWRlRG' + 'F0YUgAUgN0b3CIAQESOgoFcmlnaHQYAiABKAsyHy5mbHV0dGVyX2dsaW1wc2UuQm9yZGVyU2lk' + 'ZURhdGFIAVIFcmlnaHSIAQESPAoGYm90dG9tGAMgASgLMh8uZmx1dHRlcl9nbGltcHNlLkJvcm' + 'RlclNpZGVEYXRhSAJSBmJvdHRvbYgBARI4CgRsZWZ0GAQgASgLMh8uZmx1dHRlcl9nbGltcHNl' + 'LkJvcmRlclNpZGVEYXRhSANSBGxlZnSIAQESNgoDYWxsGAUgASgLMh8uZmx1dHRlcl9nbGltcH' + 'NlLkJvcmRlclNpZGVEYXRhSARSA2FsbIgBAUIGCgRfdG9wQggKBl9yaWdodEIJCgdfYm90dG9t' + 'QgcKBV9sZWZ0QgYKBF9hbGw='); + +@$core.Deprecated('Use boxShadowDataDescriptor instead') +const BoxShadowData$json = { + '1': 'BoxShadowData', + '2': [ + {'1': 'color', '3': 1, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '9': 0, '10': 'color', '17': true}, + {'1': 'offset_x', '3': 2, '4': 1, '5': 1, '9': 1, '10': 'offsetX', '17': true}, + {'1': 'offset_y', '3': 3, '4': 1, '5': 1, '9': 2, '10': 'offsetY', '17': true}, + {'1': 'blur_radius', '3': 4, '4': 1, '5': 1, '9': 3, '10': 'blurRadius', '17': true}, + {'1': 'spread_radius', '3': 5, '4': 1, '5': 1, '9': 4, '10': 'spreadRadius', '17': true}, + ], + '8': [ + {'1': '_color'}, + {'1': '_offset_x'}, + {'1': '_offset_y'}, + {'1': '_blur_radius'}, + {'1': '_spread_radius'}, + ], +}; + +/// Descriptor for `BoxShadowData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List boxShadowDataDescriptor = $convert.base64Decode( + 'Cg1Cb3hTaGFkb3dEYXRhEjUKBWNvbG9yGAEgASgLMhouZmx1dHRlcl9nbGltcHNlLkNvbG9yRG' + 'F0YUgAUgVjb2xvcogBARIeCghvZmZzZXRfeBgCIAEoAUgBUgdvZmZzZXRYiAEBEh4KCG9mZnNl' + 'dF95GAMgASgBSAJSB29mZnNldFmIAQESJAoLYmx1cl9yYWRpdXMYBCABKAFIA1IKYmx1clJhZG' + 'l1c4gBARIoCg1zcHJlYWRfcmFkaXVzGAUgASgBSARSDHNwcmVhZFJhZGl1c4gBAUIICgZfY29s' + 'b3JCCwoJX29mZnNldF94QgsKCV9vZmZzZXRfeUIOCgxfYmx1cl9yYWRpdXNCEAoOX3NwcmVhZF' + '9yYWRpdXM='); + +@$core.Deprecated('Use gradientDataDescriptor instead') +const GradientData$json = { + '1': 'GradientData', + '2': [ + {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.flutter_glimpse.GradientData.GradientType', '10': 'type'}, + {'1': 'colors', '3': 2, '4': 3, '5': 11, '6': '.flutter_glimpse.ColorData', '10': 'colors'}, + {'1': 'stops', '3': 3, '4': 3, '5': 1, '10': 'stops'}, + {'1': 'begin', '3': 4, '4': 1, '5': 11, '6': '.flutter_glimpse.AlignmentData', '9': 0, '10': 'begin', '17': true}, + {'1': 'end', '3': 5, '4': 1, '5': 11, '6': '.flutter_glimpse.AlignmentData', '9': 1, '10': 'end', '17': true}, + {'1': 'center', '3': 6, '4': 1, '5': 11, '6': '.flutter_glimpse.AlignmentData', '9': 2, '10': 'center', '17': true}, + {'1': 'radius', '3': 7, '4': 1, '5': 1, '9': 3, '10': 'radius', '17': true}, + {'1': 'start_angle', '3': 8, '4': 1, '5': 1, '9': 4, '10': 'startAngle', '17': true}, + {'1': 'end_angle', '3': 9, '4': 1, '5': 1, '9': 5, '10': 'endAngle', '17': true}, + ], + '4': [GradientData_GradientType$json], + '8': [ + {'1': '_begin'}, + {'1': '_end'}, + {'1': '_center'}, + {'1': '_radius'}, + {'1': '_start_angle'}, + {'1': '_end_angle'}, + ], +}; + +@$core.Deprecated('Use gradientDataDescriptor instead') +const GradientData_GradientType$json = { + '1': 'GradientType', + '2': [ + {'1': 'GRADIENT_TYPE_UNSPECIFIED', '2': 0}, + {'1': 'LINEAR', '2': 1}, + {'1': 'RADIAL', '2': 2}, + {'1': 'SWEEP', '2': 3}, + ], +}; + +/// Descriptor for `GradientData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List gradientDataDescriptor = $convert.base64Decode( + 'CgxHcmFkaWVudERhdGESPgoEdHlwZRgBIAEoDjIqLmZsdXR0ZXJfZ2xpbXBzZS5HcmFkaWVudE' + 'RhdGEuR3JhZGllbnRUeXBlUgR0eXBlEjIKBmNvbG9ycxgCIAMoCzIaLmZsdXR0ZXJfZ2xpbXBz' + 'ZS5Db2xvckRhdGFSBmNvbG9ycxIUCgVzdG9wcxgDIAMoAVIFc3RvcHMSOQoFYmVnaW4YBCABKA' + 'syHi5mbHV0dGVyX2dsaW1wc2UuQWxpZ25tZW50RGF0YUgAUgViZWdpbogBARI1CgNlbmQYBSAB' + 'KAsyHi5mbHV0dGVyX2dsaW1wc2UuQWxpZ25tZW50RGF0YUgBUgNlbmSIAQESOwoGY2VudGVyGA' + 'YgASgLMh4uZmx1dHRlcl9nbGltcHNlLkFsaWdubWVudERhdGFIAlIGY2VudGVyiAEBEhsKBnJh' + 'ZGl1cxgHIAEoAUgDUgZyYWRpdXOIAQESJAoLc3RhcnRfYW5nbGUYCCABKAFIBFIKc3RhcnRBbm' + 'dsZYgBARIgCgllbmRfYW5nbGUYCSABKAFIBVIIZW5kQW5nbGWIAQEiUAoMR3JhZGllbnRUeXBl' + 'Eh0KGUdSQURJRU5UX1RZUEVfVU5TUEVDSUZJRUQQABIKCgZMSU5FQVIQARIKCgZSQURJQUwQAh' + 'IJCgVTV0VFUBADQggKBl9iZWdpbkIGCgRfZW5kQgkKB19jZW50ZXJCCQoHX3JhZGl1c0IOCgxf' + 'c3RhcnRfYW5nbGVCDAoKX2VuZF9hbmdsZQ=='); + +@$core.Deprecated('Use alignmentDataDescriptor instead') +const AlignmentData$json = { + '1': 'AlignmentData', + '2': [ + {'1': 'predefined', '3': 1, '4': 1, '5': 14, '6': '.flutter_glimpse.AlignmentData.PredefinedAlignment', '9': 0, '10': 'predefined'}, + {'1': 'xy', '3': 2, '4': 1, '5': 11, '6': '.flutter_glimpse.XYAlignment', '9': 0, '10': 'xy'}, + ], + '4': [AlignmentData_PredefinedAlignment$json], + '8': [ + {'1': 'alignment_type'}, + ], +}; + +@$core.Deprecated('Use alignmentDataDescriptor instead') +const AlignmentData_PredefinedAlignment$json = { + '1': 'PredefinedAlignment', + '2': [ + {'1': 'PREDEFINED_ALIGNMENT_UNSPECIFIED', '2': 0}, + {'1': 'BOTTOM_CENTER', '2': 1}, + {'1': 'BOTTOM_LEFT', '2': 2}, + {'1': 'BOTTOM_RIGHT', '2': 3}, + {'1': 'CENTER_ALIGN', '2': 4}, + {'1': 'CENTER_LEFT', '2': 5}, + {'1': 'CENTER_RIGHT', '2': 6}, + {'1': 'TOP_CENTER', '2': 7}, + {'1': 'TOP_LEFT', '2': 8}, + {'1': 'TOP_RIGHT', '2': 9}, + ], +}; + +/// Descriptor for `AlignmentData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List alignmentDataDescriptor = $convert.base64Decode( + 'Cg1BbGlnbm1lbnREYXRhElQKCnByZWRlZmluZWQYASABKA4yMi5mbHV0dGVyX2dsaW1wc2UuQW' + 'xpZ25tZW50RGF0YS5QcmVkZWZpbmVkQWxpZ25tZW50SABSCnByZWRlZmluZWQSLgoCeHkYAiAB' + 'KAsyHC5mbHV0dGVyX2dsaW1wc2UuWFlBbGlnbm1lbnRIAFICeHki0wEKE1ByZWRlZmluZWRBbG' + 'lnbm1lbnQSJAogUFJFREVGSU5FRF9BTElHTk1FTlRfVU5TUEVDSUZJRUQQABIRCg1CT1RUT01f' + 'Q0VOVEVSEAESDwoLQk9UVE9NX0xFRlQQAhIQCgxCT1RUT01fUklHSFQQAxIQCgxDRU5URVJfQU' + 'xJR04QBBIPCgtDRU5URVJfTEVGVBAFEhAKDENFTlRFUl9SSUdIVBAGEg4KClRPUF9DRU5URVIQ' + 'BxIMCghUT1BfTEVGVBAIEg0KCVRPUF9SSUdIVBAJQhAKDmFsaWdubWVudF90eXBl'); + +@$core.Deprecated('Use xYAlignmentDescriptor instead') +const XYAlignment$json = { + '1': 'XYAlignment', + '2': [ + {'1': 'x', '3': 1, '4': 1, '5': 1, '10': 'x'}, + {'1': 'y', '3': 2, '4': 1, '5': 1, '10': 'y'}, + ], +}; + +/// Descriptor for `XYAlignment`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List xYAlignmentDescriptor = $convert.base64Decode( + 'CgtYWUFsaWdubWVudBIMCgF4GAEgASgBUgF4EgwKAXkYAiABKAFSAXk='); + +@$core.Deprecated('Use decorationImageDataDescriptor instead') +const DecorationImageData$json = { + '1': 'DecorationImageData', + '2': [ + {'1': 'src', '3': 1, '4': 1, '5': 9, '10': 'src'}, + {'1': 'fit', '3': 2, '4': 1, '5': 14, '6': '.flutter_glimpse.BoxFitProto', '9': 0, '10': 'fit', '17': true}, + {'1': 'alignment', '3': 3, '4': 1, '5': 11, '6': '.flutter_glimpse.AlignmentData', '9': 1, '10': 'alignment', '17': true}, + {'1': 'repeat', '3': 4, '4': 1, '5': 14, '6': '.flutter_glimpse.ImageRepeatProto', '9': 2, '10': 'repeat', '17': true}, + {'1': 'match_text_direction', '3': 5, '4': 1, '5': 8, '9': 3, '10': 'matchTextDirection', '17': true}, + {'1': 'scale', '3': 6, '4': 1, '5': 1, '9': 4, '10': 'scale', '17': true}, + {'1': 'opacity', '3': 7, '4': 1, '5': 1, '9': 5, '10': 'opacity', '17': true}, + {'1': 'filter_quality', '3': 8, '4': 1, '5': 14, '6': '.flutter_glimpse.FilterQualityProto', '9': 6, '10': 'filterQuality', '17': true}, + {'1': 'invert_colors', '3': 9, '4': 1, '5': 8, '9': 7, '10': 'invertColors', '17': true}, + {'1': 'is_anti_alias', '3': 10, '4': 1, '5': 8, '9': 8, '10': 'isAntiAlias', '17': true}, + ], + '8': [ + {'1': '_fit'}, + {'1': '_alignment'}, + {'1': '_repeat'}, + {'1': '_match_text_direction'}, + {'1': '_scale'}, + {'1': '_opacity'}, + {'1': '_filter_quality'}, + {'1': '_invert_colors'}, + {'1': '_is_anti_alias'}, + ], +}; + +/// Descriptor for `DecorationImageData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List decorationImageDataDescriptor = $convert.base64Decode( + 'ChNEZWNvcmF0aW9uSW1hZ2VEYXRhEhAKA3NyYxgBIAEoCVIDc3JjEjMKA2ZpdBgCIAEoDjIcLm' + 'ZsdXR0ZXJfZ2xpbXBzZS5Cb3hGaXRQcm90b0gAUgNmaXSIAQESQQoJYWxpZ25tZW50GAMgASgL' + 'Mh4uZmx1dHRlcl9nbGltcHNlLkFsaWdubWVudERhdGFIAVIJYWxpZ25tZW50iAEBEj4KBnJlcG' + 'VhdBgEIAEoDjIhLmZsdXR0ZXJfZ2xpbXBzZS5JbWFnZVJlcGVhdFByb3RvSAJSBnJlcGVhdIgB' + 'ARI1ChRtYXRjaF90ZXh0X2RpcmVjdGlvbhgFIAEoCEgDUhJtYXRjaFRleHREaXJlY3Rpb26IAQ' + 'ESGQoFc2NhbGUYBiABKAFIBFIFc2NhbGWIAQESHQoHb3BhY2l0eRgHIAEoAUgFUgdvcGFjaXR5' + 'iAEBEk8KDmZpbHRlcl9xdWFsaXR5GAggASgOMiMuZmx1dHRlcl9nbGltcHNlLkZpbHRlclF1YW' + 'xpdHlQcm90b0gGUg1maWx0ZXJRdWFsaXR5iAEBEigKDWludmVydF9jb2xvcnMYCSABKAhIB1IM' + 'aW52ZXJ0Q29sb3JziAEBEicKDWlzX2FudGlfYWxpYXMYCiABKAhICFILaXNBbnRpQWxpYXOIAQ' + 'FCBgoEX2ZpdEIMCgpfYWxpZ25tZW50QgkKB19yZXBlYXRCFwoVX21hdGNoX3RleHRfZGlyZWN0' + 'aW9uQggKBl9zY2FsZUIKCghfb3BhY2l0eUIRCg9fZmlsdGVyX3F1YWxpdHlCEAoOX2ludmVydF' + '9jb2xvcnNCEAoOX2lzX2FudGlfYWxpYXM='); + +@$core.Deprecated('Use boxConstraintsDataDescriptor instead') +const BoxConstraintsData$json = { + '1': 'BoxConstraintsData', + '2': [ + {'1': 'min_width', '3': 1, '4': 1, '5': 1, '9': 0, '10': 'minWidth', '17': true}, + {'1': 'max_width', '3': 2, '4': 1, '5': 1, '9': 1, '10': 'maxWidth', '17': true}, + {'1': 'min_height', '3': 3, '4': 1, '5': 1, '9': 2, '10': 'minHeight', '17': true}, + {'1': 'max_height', '3': 4, '4': 1, '5': 1, '9': 3, '10': 'maxHeight', '17': true}, + ], + '8': [ + {'1': '_min_width'}, + {'1': '_max_width'}, + {'1': '_min_height'}, + {'1': '_max_height'}, + ], +}; + +/// Descriptor for `BoxConstraintsData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List boxConstraintsDataDescriptor = $convert.base64Decode( + 'ChJCb3hDb25zdHJhaW50c0RhdGESIAoJbWluX3dpZHRoGAEgASgBSABSCG1pbldpZHRoiAEBEi' + 'AKCW1heF93aWR0aBgCIAEoAUgBUghtYXhXaWR0aIgBARIiCgptaW5faGVpZ2h0GAMgASgBSAJS' + 'CW1pbkhlaWdodIgBARIiCgptYXhfaGVpZ2h0GAQgASgBSANSCW1heEhlaWdodIgBAUIMCgpfbW' + 'luX3dpZHRoQgwKCl9tYXhfd2lkdGhCDQoLX21pbl9oZWlnaHRCDQoLX21heF9oZWlnaHQ='); + +@$core.Deprecated('Use transformDataDescriptor instead') +const TransformData$json = { + '1': 'TransformData', + '2': [ + {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.flutter_glimpse.TransformData.TransformType', '10': 'type'}, + {'1': 'matrix_values', '3': 2, '4': 3, '5': 1, '10': 'matrixValues'}, + {'1': 'translate_x', '3': 3, '4': 1, '5': 1, '9': 0, '10': 'translateX', '17': true}, + {'1': 'translate_y', '3': 4, '4': 1, '5': 1, '9': 1, '10': 'translateY', '17': true}, + {'1': 'translate_z', '3': 5, '4': 1, '5': 1, '9': 2, '10': 'translateZ', '17': true}, + {'1': 'rotation_angle', '3': 6, '4': 1, '5': 1, '9': 3, '10': 'rotationAngle', '17': true}, + {'1': 'rotation_x', '3': 7, '4': 1, '5': 1, '9': 4, '10': 'rotationX', '17': true}, + {'1': 'rotation_y', '3': 8, '4': 1, '5': 1, '9': 5, '10': 'rotationY', '17': true}, + {'1': 'rotation_z', '3': 9, '4': 1, '5': 1, '9': 6, '10': 'rotationZ', '17': true}, + {'1': 'scale_x', '3': 10, '4': 1, '5': 1, '9': 7, '10': 'scaleX', '17': true}, + {'1': 'scale_y', '3': 11, '4': 1, '5': 1, '9': 8, '10': 'scaleY', '17': true}, + {'1': 'scale_z', '3': 12, '4': 1, '5': 1, '9': 9, '10': 'scaleZ', '17': true}, + ], + '4': [TransformData_TransformType$json], + '8': [ + {'1': '_translate_x'}, + {'1': '_translate_y'}, + {'1': '_translate_z'}, + {'1': '_rotation_angle'}, + {'1': '_rotation_x'}, + {'1': '_rotation_y'}, + {'1': '_rotation_z'}, + {'1': '_scale_x'}, + {'1': '_scale_y'}, + {'1': '_scale_z'}, + ], +}; + +@$core.Deprecated('Use transformDataDescriptor instead') +const TransformData_TransformType$json = { + '1': 'TransformType', + '2': [ + {'1': 'TRANSFORM_TYPE_UNSPECIFIED', '2': 0}, + {'1': 'MATRIX_4X4', '2': 1}, + {'1': 'TRANSLATE', '2': 2}, + {'1': 'ROTATE', '2': 3}, + {'1': 'SCALE', '2': 4}, + ], +}; + +/// Descriptor for `TransformData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List transformDataDescriptor = $convert.base64Decode( + 'Cg1UcmFuc2Zvcm1EYXRhEkAKBHR5cGUYASABKA4yLC5mbHV0dGVyX2dsaW1wc2UuVHJhbnNmb3' + 'JtRGF0YS5UcmFuc2Zvcm1UeXBlUgR0eXBlEiMKDW1hdHJpeF92YWx1ZXMYAiADKAFSDG1hdHJp' + 'eFZhbHVlcxIkCgt0cmFuc2xhdGVfeBgDIAEoAUgAUgp0cmFuc2xhdGVYiAEBEiQKC3RyYW5zbG' + 'F0ZV95GAQgASgBSAFSCnRyYW5zbGF0ZVmIAQESJAoLdHJhbnNsYXRlX3oYBSABKAFIAlIKdHJh' + 'bnNsYXRlWogBARIqCg5yb3RhdGlvbl9hbmdsZRgGIAEoAUgDUg1yb3RhdGlvbkFuZ2xliAEBEi' + 'IKCnJvdGF0aW9uX3gYByABKAFIBFIJcm90YXRpb25YiAEBEiIKCnJvdGF0aW9uX3kYCCABKAFI' + 'BVIJcm90YXRpb25ZiAEBEiIKCnJvdGF0aW9uX3oYCSABKAFIBlIJcm90YXRpb25aiAEBEhwKB3' + 'NjYWxlX3gYCiABKAFIB1IGc2NhbGVYiAEBEhwKB3NjYWxlX3kYCyABKAFICFIGc2NhbGVZiAEB' + 'EhwKB3NjYWxlX3oYDCABKAFICVIGc2NhbGVaiAEBImUKDVRyYW5zZm9ybVR5cGUSHgoaVFJBTl' + 'NGT1JNX1RZUEVfVU5TUEVDSUZJRUQQABIOCgpNQVRSSVhfNFg0EAESDQoJVFJBTlNMQVRFEAIS' + 'CgoGUk9UQVRFEAMSCQoFU0NBTEUQBEIOCgxfdHJhbnNsYXRlX3hCDgoMX3RyYW5zbGF0ZV95Qg' + '4KDF90cmFuc2xhdGVfekIRCg9fcm90YXRpb25fYW5nbGVCDQoLX3JvdGF0aW9uX3hCDQoLX3Jv' + 'dGF0aW9uX3lCDQoLX3JvdGF0aW9uX3pCCgoIX3NjYWxlX3hCCgoIX3NjYWxlX3lCCgoIX3NjYW' + 'xlX3o='); + +@$core.Deprecated('Use rectDataDescriptor instead') +const RectData$json = { + '1': 'RectData', + '2': [ + {'1': 'left', '3': 1, '4': 1, '5': 1, '10': 'left'}, + {'1': 'top', '3': 2, '4': 1, '5': 1, '10': 'top'}, + {'1': 'right', '3': 3, '4': 1, '5': 1, '10': 'right'}, + {'1': 'bottom', '3': 4, '4': 1, '5': 1, '10': 'bottom'}, + ], +}; + +/// Descriptor for `RectData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rectDataDescriptor = $convert.base64Decode( + 'CghSZWN0RGF0YRISCgRsZWZ0GAEgASgBUgRsZWZ0EhAKA3RvcBgCIAEoAVIDdG9wEhQKBXJpZ2' + 'h0GAMgASgBUgVyaWdodBIWCgZib3R0b20YBCABKAFSBmJvdHRvbQ=='); + +@$core.Deprecated('Use shadowDataDescriptor instead') +const ShadowData$json = { + '1': 'ShadowData', + '2': [ + {'1': 'color', '3': 1, '4': 1, '5': 11, '6': '.flutter_glimpse.ColorData', '10': 'color'}, + {'1': 'offset_x', '3': 2, '4': 1, '5': 1, '10': 'offsetX'}, + {'1': 'offset_y', '3': 3, '4': 1, '5': 1, '10': 'offsetY'}, + {'1': 'blur_radius', '3': 4, '4': 1, '5': 1, '10': 'blurRadius'}, + ], +}; + +/// Descriptor for `ShadowData`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List shadowDataDescriptor = $convert.base64Decode( + 'CgpTaGFkb3dEYXRhEjAKBWNvbG9yGAEgASgLMhouZmx1dHRlcl9nbGltcHNlLkNvbG9yRGF0YV' + 'IFY29sb3ISGQoIb2Zmc2V0X3gYAiABKAFSB29mZnNldFgSGQoIb2Zmc2V0X3kYAyABKAFSB29m' + 'ZnNldFkSHwoLYmx1cl9yYWRpdXMYBCABKAFSCmJsdXJSYWRpdXM='); + +@$core.Deprecated('Use glimpseRequestDescriptor instead') +const GlimpseRequest$json = { + '1': 'GlimpseRequest', + '2': [ + {'1': 'screen_id', '3': 1, '4': 1, '5': 9, '10': 'screenId'}, + ], +}; + +/// Descriptor for `GlimpseRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List glimpseRequestDescriptor = $convert.base64Decode( + 'Cg5HbGltcHNlUmVxdWVzdBIbCglzY3JlZW5faWQYASABKAlSCHNjcmVlbklk'); + diff --git a/lib/src/generated/sdui.pbenum.dart b/lib/src/generated/sdui.pbenum.dart deleted file mode 100644 index d30d668..0000000 --- a/lib/src/generated/sdui.pbenum.dart +++ /dev/null @@ -1,799 +0,0 @@ -// -// Generated code. Do not modify. -// source: sdui.proto -// -// @dart = 3.3 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -import 'dart:core' as $core; - -import 'package:protobuf/protobuf.dart' as $pb; - -/// Enum for Widget Types -/// -class WidgetType extends $pb.ProtobufEnum { - static const WidgetType WIDGET_TYPE_UNSPECIFIED = - WidgetType._(0, _omitEnumNames ? '' : 'WIDGET_TYPE_UNSPECIFIED'); - static const WidgetType COLUMN = - WidgetType._(1, _omitEnumNames ? '' : 'COLUMN'); - static const WidgetType ROW = WidgetType._(2, _omitEnumNames ? '' : 'ROW'); - static const WidgetType TEXT = WidgetType._(3, _omitEnumNames ? '' : 'TEXT'); - static const WidgetType IMAGE = - WidgetType._(4, _omitEnumNames ? '' : 'IMAGE'); - static const WidgetType SIZED_BOX = - WidgetType._(5, _omitEnumNames ? '' : 'SIZED_BOX'); - static const WidgetType CONTAINER = - WidgetType._(6, _omitEnumNames ? '' : 'CONTAINER'); - static const WidgetType SCAFFOLD = - WidgetType._(7, _omitEnumNames ? '' : 'SCAFFOLD'); - static const WidgetType SPACER = - WidgetType._(8, _omitEnumNames ? '' : 'SPACER'); - static const WidgetType ICON = WidgetType._(9, _omitEnumNames ? '' : 'ICON'); - static const WidgetType APPBAR = WidgetType._(10, _omitEnumNames ? '' : 'APPBAR'); - - static const $core.List values = [ - WIDGET_TYPE_UNSPECIFIED, - COLUMN, - ROW, - TEXT, - IMAGE, - SIZED_BOX, - CONTAINER, - SCAFFOLD, - SPACER, - ICON, - APPBAR, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 10); - static WidgetType? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const WidgetType._(super.v, super.n); -} - -/// Message for BoxFit -class BoxFitProto extends $pb.ProtobufEnum { - static const BoxFitProto BOX_FIT_UNSPECIFIED = - BoxFitProto._(0, _omitEnumNames ? '' : 'BOX_FIT_UNSPECIFIED'); - static const BoxFitProto FILL = - BoxFitProto._(1, _omitEnumNames ? '' : 'FILL'); - static const BoxFitProto CONTAIN = - BoxFitProto._(2, _omitEnumNames ? '' : 'CONTAIN'); - static const BoxFitProto COVER = - BoxFitProto._(3, _omitEnumNames ? '' : 'COVER'); - static const BoxFitProto FIT_WIDTH = - BoxFitProto._(4, _omitEnumNames ? '' : 'FIT_WIDTH'); - static const BoxFitProto FIT_HEIGHT = - BoxFitProto._(5, _omitEnumNames ? '' : 'FIT_HEIGHT'); - static const BoxFitProto NONE_BOX_FIT = - BoxFitProto._(6, _omitEnumNames ? '' : 'NONE_BOX_FIT'); - static const BoxFitProto SCALE_DOWN = - BoxFitProto._(7, _omitEnumNames ? '' : 'SCALE_DOWN'); - - static const $core.List values = [ - BOX_FIT_UNSPECIFIED, - FILL, - CONTAIN, - COVER, - FIT_WIDTH, - FIT_HEIGHT, - NONE_BOX_FIT, - SCALE_DOWN, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 7); - static BoxFitProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const BoxFitProto._(super.v, super.n); -} - -/// Enum for BorderStyle -class BorderStyleProto extends $pb.ProtobufEnum { - static const BorderStyleProto BORDER_STYLE_UNSPECIFIED = - BorderStyleProto._(0, _omitEnumNames ? '' : 'BORDER_STYLE_UNSPECIFIED'); - static const BorderStyleProto SOLID = - BorderStyleProto._(1, _omitEnumNames ? '' : 'SOLID'); - static const BorderStyleProto NONE_BORDER = - BorderStyleProto._(2, _omitEnumNames ? '' : 'NONE_BORDER'); - - static const $core.List values = [ - BORDER_STYLE_UNSPECIFIED, - SOLID, - NONE_BORDER, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 2); - static BorderStyleProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const BorderStyleProto._(super.v, super.n); -} - -/// Enum for BoxShape -class BoxShapeProto extends $pb.ProtobufEnum { - static const BoxShapeProto BOX_SHAPE_UNSPECIFIED = - BoxShapeProto._(0, _omitEnumNames ? '' : 'BOX_SHAPE_UNSPECIFIED'); - static const BoxShapeProto RECTANGLE = - BoxShapeProto._(1, _omitEnumNames ? '' : 'RECTANGLE'); - static const BoxShapeProto CIRCLE = - BoxShapeProto._(2, _omitEnumNames ? '' : 'CIRCLE'); - - static const $core.List values = [ - BOX_SHAPE_UNSPECIFIED, - RECTANGLE, - CIRCLE, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 2); - static BoxShapeProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const BoxShapeProto._(super.v, super.n); -} - -/// Enum for ImageRepeat -class ImageRepeatProto extends $pb.ProtobufEnum { - static const ImageRepeatProto IMAGE_REPEAT_UNSPECIFIED = - ImageRepeatProto._(0, _omitEnumNames ? '' : 'IMAGE_REPEAT_UNSPECIFIED'); - static const ImageRepeatProto REPEAT = - ImageRepeatProto._(1, _omitEnumNames ? '' : 'REPEAT'); - static const ImageRepeatProto REPEAT_X = - ImageRepeatProto._(2, _omitEnumNames ? '' : 'REPEAT_X'); - static const ImageRepeatProto REPEAT_Y = - ImageRepeatProto._(3, _omitEnumNames ? '' : 'REPEAT_Y'); - static const ImageRepeatProto NO_REPEAT = - ImageRepeatProto._(4, _omitEnumNames ? '' : 'NO_REPEAT'); - - static const $core.List values = [ - IMAGE_REPEAT_UNSPECIFIED, - REPEAT, - REPEAT_X, - REPEAT_Y, - NO_REPEAT, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 4); - static ImageRepeatProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const ImageRepeatProto._(super.v, super.n); -} - -/// Enum for FilterQuality -class FilterQualityProto extends $pb.ProtobufEnum { - static const FilterQualityProto FILTER_QUALITY_UNSPECIFIED = - FilterQualityProto._( - 0, _omitEnumNames ? '' : 'FILTER_QUALITY_UNSPECIFIED'); - static const FilterQualityProto NONE_FQ = - FilterQualityProto._(1, _omitEnumNames ? '' : 'NONE_FQ'); - static const FilterQualityProto LOW = - FilterQualityProto._(2, _omitEnumNames ? '' : 'LOW'); - static const FilterQualityProto MEDIUM = - FilterQualityProto._(3, _omitEnumNames ? '' : 'MEDIUM'); - static const FilterQualityProto HIGH = - FilterQualityProto._(4, _omitEnumNames ? '' : 'HIGH'); - - static const $core.List values = [ - FILTER_QUALITY_UNSPECIFIED, - NONE_FQ, - LOW, - MEDIUM, - HIGH, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 4); - static FilterQualityProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const FilterQualityProto._(super.v, super.n); -} - -/// New enums for Row and Column properties -class MainAxisAlignmentProto extends $pb.ProtobufEnum { - static const MainAxisAlignmentProto MAIN_AXIS_ALIGNMENT_UNSPECIFIED = - MainAxisAlignmentProto._( - 0, _omitEnumNames ? '' : 'MAIN_AXIS_ALIGNMENT_UNSPECIFIED'); - static const MainAxisAlignmentProto MAIN_AXIS_START = - MainAxisAlignmentProto._(1, _omitEnumNames ? '' : 'MAIN_AXIS_START'); - static const MainAxisAlignmentProto MAIN_AXIS_END = - MainAxisAlignmentProto._(2, _omitEnumNames ? '' : 'MAIN_AXIS_END'); - static const MainAxisAlignmentProto MAIN_AXIS_CENTER = - MainAxisAlignmentProto._(3, _omitEnumNames ? '' : 'MAIN_AXIS_CENTER'); - static const MainAxisAlignmentProto SPACE_BETWEEN = - MainAxisAlignmentProto._(4, _omitEnumNames ? '' : 'SPACE_BETWEEN'); - static const MainAxisAlignmentProto SPACE_AROUND = - MainAxisAlignmentProto._(5, _omitEnumNames ? '' : 'SPACE_AROUND'); - static const MainAxisAlignmentProto SPACE_EVENLY = - MainAxisAlignmentProto._(6, _omitEnumNames ? '' : 'SPACE_EVENLY'); - - static const $core.List values = - [ - MAIN_AXIS_ALIGNMENT_UNSPECIFIED, - MAIN_AXIS_START, - MAIN_AXIS_END, - MAIN_AXIS_CENTER, - SPACE_BETWEEN, - SPACE_AROUND, - SPACE_EVENLY, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 6); - static MainAxisAlignmentProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const MainAxisAlignmentProto._(super.v, super.n); -} - -class CrossAxisAlignmentProto extends $pb.ProtobufEnum { - static const CrossAxisAlignmentProto CROSS_AXIS_ALIGNMENT_UNSPECIFIED = - CrossAxisAlignmentProto._( - 0, _omitEnumNames ? '' : 'CROSS_AXIS_ALIGNMENT_UNSPECIFIED'); - static const CrossAxisAlignmentProto CROSS_AXIS_START = - CrossAxisAlignmentProto._(1, _omitEnumNames ? '' : 'CROSS_AXIS_START'); - static const CrossAxisAlignmentProto CROSS_AXIS_END = - CrossAxisAlignmentProto._(2, _omitEnumNames ? '' : 'CROSS_AXIS_END'); - static const CrossAxisAlignmentProto CROSS_AXIS_CENTER = - CrossAxisAlignmentProto._(3, _omitEnumNames ? '' : 'CROSS_AXIS_CENTER'); - static const CrossAxisAlignmentProto STRETCH = - CrossAxisAlignmentProto._(4, _omitEnumNames ? '' : 'STRETCH'); - static const CrossAxisAlignmentProto BASELINE = - CrossAxisAlignmentProto._(5, _omitEnumNames ? '' : 'BASELINE'); - - static const $core.List values = - [ - CROSS_AXIS_ALIGNMENT_UNSPECIFIED, - CROSS_AXIS_START, - CROSS_AXIS_END, - CROSS_AXIS_CENTER, - STRETCH, - BASELINE, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 5); - static CrossAxisAlignmentProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const CrossAxisAlignmentProto._(super.v, super.n); -} - -class MainAxisSizeProto extends $pb.ProtobufEnum { - static const MainAxisSizeProto MAIN_AXIS_SIZE_UNSPECIFIED = - MainAxisSizeProto._( - 0, _omitEnumNames ? '' : 'MAIN_AXIS_SIZE_UNSPECIFIED'); - static const MainAxisSizeProto MIN = - MainAxisSizeProto._(1, _omitEnumNames ? '' : 'MIN'); - static const MainAxisSizeProto MAX = - MainAxisSizeProto._(2, _omitEnumNames ? '' : 'MAX'); - - static const $core.List values = [ - MAIN_AXIS_SIZE_UNSPECIFIED, - MIN, - MAX, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 2); - static MainAxisSizeProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const MainAxisSizeProto._(super.v, super.n); -} - -class TextDirectionProto extends $pb.ProtobufEnum { - static const TextDirectionProto TEXT_DIRECTION_UNSPECIFIED = - TextDirectionProto._( - 0, _omitEnumNames ? '' : 'TEXT_DIRECTION_UNSPECIFIED'); - static const TextDirectionProto LTR = - TextDirectionProto._(1, _omitEnumNames ? '' : 'LTR'); - static const TextDirectionProto RTL = - TextDirectionProto._(2, _omitEnumNames ? '' : 'RTL'); - - static const $core.List values = [ - TEXT_DIRECTION_UNSPECIFIED, - LTR, - RTL, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 2); - static TextDirectionProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const TextDirectionProto._(super.v, super.n); -} - -class VerticalDirectionProto extends $pb.ProtobufEnum { - static const VerticalDirectionProto VERTICAL_DIRECTION_UNSPECIFIED = - VerticalDirectionProto._( - 0, _omitEnumNames ? '' : 'VERTICAL_DIRECTION_UNSPECIFIED'); - static const VerticalDirectionProto UP = - VerticalDirectionProto._(1, _omitEnumNames ? '' : 'UP'); - static const VerticalDirectionProto DOWN = - VerticalDirectionProto._(2, _omitEnumNames ? '' : 'DOWN'); - - static const $core.List values = - [ - VERTICAL_DIRECTION_UNSPECIFIED, - UP, - DOWN, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 2); - static VerticalDirectionProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const VerticalDirectionProto._(super.v, super.n); -} - -class TextBaselineProto extends $pb.ProtobufEnum { - static const TextBaselineProto TEXT_BASELINE_UNSPECIFIED = - TextBaselineProto._(0, _omitEnumNames ? '' : 'TEXT_BASELINE_UNSPECIFIED'); - static const TextBaselineProto ALPHABETIC = - TextBaselineProto._(1, _omitEnumNames ? '' : 'ALPHABETIC'); - static const TextBaselineProto IDEOGRAPHIC = - TextBaselineProto._(2, _omitEnumNames ? '' : 'IDEOGRAPHIC'); - - static const $core.List values = [ - TEXT_BASELINE_UNSPECIFIED, - ALPHABETIC, - IDEOGRAPHIC, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 2); - static TextBaselineProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const TextBaselineProto._(super.v, super.n); -} - -/// New enum for Clip behavior -class ClipProto extends $pb.ProtobufEnum { - static const ClipProto CLIP_UNSPECIFIED = - ClipProto._(0, _omitEnumNames ? '' : 'CLIP_UNSPECIFIED'); - static const ClipProto CLIP_NONE = - ClipProto._(1, _omitEnumNames ? '' : 'CLIP_NONE'); - static const ClipProto HARD_EDGE = - ClipProto._(2, _omitEnumNames ? '' : 'HARD_EDGE'); - static const ClipProto ANTI_ALIAS = - ClipProto._(3, _omitEnumNames ? '' : 'ANTI_ALIAS'); - static const ClipProto ANTI_ALIAS_WITH_SAVE_LAYER = - ClipProto._(4, _omitEnumNames ? '' : 'ANTI_ALIAS_WITH_SAVE_LAYER'); - - static const $core.List values = [ - CLIP_UNSPECIFIED, - CLIP_NONE, - HARD_EDGE, - ANTI_ALIAS, - ANTI_ALIAS_WITH_SAVE_LAYER, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 4); - static ClipProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const ClipProto._(super.v, super.n); -} - -/// New enums for Text properties -class TextAlignProto extends $pb.ProtobufEnum { - static const TextAlignProto TEXT_ALIGN_UNSPECIFIED = - TextAlignProto._(0, _omitEnumNames ? '' : 'TEXT_ALIGN_UNSPECIFIED'); - static const TextAlignProto LEFT = - TextAlignProto._(1, _omitEnumNames ? '' : 'LEFT'); - static const TextAlignProto RIGHT = - TextAlignProto._(2, _omitEnumNames ? '' : 'RIGHT'); - static const TextAlignProto TEXT_ALIGN_CENTER = - TextAlignProto._(3, _omitEnumNames ? '' : 'TEXT_ALIGN_CENTER'); - static const TextAlignProto JUSTIFY = - TextAlignProto._(4, _omitEnumNames ? '' : 'JUSTIFY'); - static const TextAlignProto TEXT_ALIGN_START = - TextAlignProto._(5, _omitEnumNames ? '' : 'TEXT_ALIGN_START'); - static const TextAlignProto TEXT_ALIGN_END = - TextAlignProto._(6, _omitEnumNames ? '' : 'TEXT_ALIGN_END'); - - static const $core.List values = [ - TEXT_ALIGN_UNSPECIFIED, - LEFT, - RIGHT, - TEXT_ALIGN_CENTER, - JUSTIFY, - TEXT_ALIGN_START, - TEXT_ALIGN_END, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 6); - static TextAlignProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const TextAlignProto._(super.v, super.n); -} - -class TextOverflowProto extends $pb.ProtobufEnum { - static const TextOverflowProto TEXT_OVERFLOW_UNSPECIFIED = - TextOverflowProto._(0, _omitEnumNames ? '' : 'TEXT_OVERFLOW_UNSPECIFIED'); - static const TextOverflowProto CLIP = - TextOverflowProto._(1, _omitEnumNames ? '' : 'CLIP'); - static const TextOverflowProto ELLIPSIS = - TextOverflowProto._(2, _omitEnumNames ? '' : 'ELLIPSIS'); - static const TextOverflowProto FADE = - TextOverflowProto._(3, _omitEnumNames ? '' : 'FADE'); - static const TextOverflowProto VISIBLE = - TextOverflowProto._(4, _omitEnumNames ? '' : 'VISIBLE'); - - static const $core.List values = [ - TEXT_OVERFLOW_UNSPECIFIED, - CLIP, - ELLIPSIS, - FADE, - VISIBLE, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 4); - static TextOverflowProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const TextOverflowProto._(super.v, super.n); -} - -class TextDecorationProto extends $pb.ProtobufEnum { - static const TextDecorationProto TEXT_DECORATION_UNSPECIFIED = - TextDecorationProto._( - 0, _omitEnumNames ? '' : 'TEXT_DECORATION_UNSPECIFIED'); - static const TextDecorationProto TEXT_DECORATION_NONE = - TextDecorationProto._(1, _omitEnumNames ? '' : 'TEXT_DECORATION_NONE'); - static const TextDecorationProto UNDERLINE = - TextDecorationProto._(2, _omitEnumNames ? '' : 'UNDERLINE'); - static const TextDecorationProto OVERLINE = - TextDecorationProto._(3, _omitEnumNames ? '' : 'OVERLINE'); - static const TextDecorationProto LINE_THROUGH = - TextDecorationProto._(4, _omitEnumNames ? '' : 'LINE_THROUGH'); - - static const $core.List values = [ - TEXT_DECORATION_UNSPECIFIED, - TEXT_DECORATION_NONE, - UNDERLINE, - OVERLINE, - LINE_THROUGH, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 4); - static TextDecorationProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const TextDecorationProto._(super.v, super.n); -} - -class FontStyleProto extends $pb.ProtobufEnum { - static const FontStyleProto FONT_STYLE_UNSPECIFIED = - FontStyleProto._(0, _omitEnumNames ? '' : 'FONT_STYLE_UNSPECIFIED'); - static const FontStyleProto NORMAL = - FontStyleProto._(1, _omitEnumNames ? '' : 'NORMAL'); - static const FontStyleProto ITALIC = - FontStyleProto._(2, _omitEnumNames ? '' : 'ITALIC'); - - static const $core.List values = [ - FONT_STYLE_UNSPECIFIED, - NORMAL, - ITALIC, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 2); - static FontStyleProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const FontStyleProto._(super.v, super.n); -} - -/// New enum for Blend modes -class BlendModeProto extends $pb.ProtobufEnum { - static const BlendModeProto BLEND_MODE_UNSPECIFIED = - BlendModeProto._(0, _omitEnumNames ? '' : 'BLEND_MODE_UNSPECIFIED'); - static const BlendModeProto CLEAR = - BlendModeProto._(1, _omitEnumNames ? '' : 'CLEAR'); - static const BlendModeProto SRC = - BlendModeProto._(2, _omitEnumNames ? '' : 'SRC'); - static const BlendModeProto DST = - BlendModeProto._(3, _omitEnumNames ? '' : 'DST'); - static const BlendModeProto SRC_OVER = - BlendModeProto._(4, _omitEnumNames ? '' : 'SRC_OVER'); - static const BlendModeProto DST_OVER = - BlendModeProto._(5, _omitEnumNames ? '' : 'DST_OVER'); - static const BlendModeProto SRC_IN = - BlendModeProto._(6, _omitEnumNames ? '' : 'SRC_IN'); - static const BlendModeProto DST_IN = - BlendModeProto._(7, _omitEnumNames ? '' : 'DST_IN'); - static const BlendModeProto SRC_OUT = - BlendModeProto._(8, _omitEnumNames ? '' : 'SRC_OUT'); - static const BlendModeProto DST_OUT = - BlendModeProto._(9, _omitEnumNames ? '' : 'DST_OUT'); - static const BlendModeProto SRC_ATOP = - BlendModeProto._(10, _omitEnumNames ? '' : 'SRC_ATOP'); - static const BlendModeProto DST_ATOP = - BlendModeProto._(11, _omitEnumNames ? '' : 'DST_ATOP'); - static const BlendModeProto XOR = - BlendModeProto._(12, _omitEnumNames ? '' : 'XOR'); - static const BlendModeProto PLUS = - BlendModeProto._(13, _omitEnumNames ? '' : 'PLUS'); - static const BlendModeProto MODULATE = - BlendModeProto._(14, _omitEnumNames ? '' : 'MODULATE'); - static const BlendModeProto SCREEN = - BlendModeProto._(15, _omitEnumNames ? '' : 'SCREEN'); - static const BlendModeProto OVERLAY = - BlendModeProto._(16, _omitEnumNames ? '' : 'OVERLAY'); - static const BlendModeProto DARKEN = - BlendModeProto._(17, _omitEnumNames ? '' : 'DARKEN'); - static const BlendModeProto LIGHTEN = - BlendModeProto._(18, _omitEnumNames ? '' : 'LIGHTEN'); - static const BlendModeProto COLOR_DODGE = - BlendModeProto._(19, _omitEnumNames ? '' : 'COLOR_DODGE'); - static const BlendModeProto COLOR_BURN = - BlendModeProto._(20, _omitEnumNames ? '' : 'COLOR_BURN'); - static const BlendModeProto HARD_LIGHT = - BlendModeProto._(21, _omitEnumNames ? '' : 'HARD_LIGHT'); - static const BlendModeProto SOFT_LIGHT = - BlendModeProto._(22, _omitEnumNames ? '' : 'SOFT_LIGHT'); - static const BlendModeProto DIFFERENCE = - BlendModeProto._(23, _omitEnumNames ? '' : 'DIFFERENCE'); - static const BlendModeProto EXCLUSION = - BlendModeProto._(24, _omitEnumNames ? '' : 'EXCLUSION'); - static const BlendModeProto MULTIPLY = - BlendModeProto._(25, _omitEnumNames ? '' : 'MULTIPLY'); - static const BlendModeProto HUE = - BlendModeProto._(26, _omitEnumNames ? '' : 'HUE'); - static const BlendModeProto SATURATION = - BlendModeProto._(27, _omitEnumNames ? '' : 'SATURATION'); - static const BlendModeProto COLOR = - BlendModeProto._(28, _omitEnumNames ? '' : 'COLOR'); - static const BlendModeProto LUMINOSITY = - BlendModeProto._(29, _omitEnumNames ? '' : 'LUMINOSITY'); - - static const $core.List values = [ - BLEND_MODE_UNSPECIFIED, - CLEAR, - SRC, - DST, - SRC_OVER, - DST_OVER, - SRC_IN, - DST_IN, - SRC_OUT, - DST_OUT, - SRC_ATOP, - DST_ATOP, - XOR, - PLUS, - MODULATE, - SCREEN, - OVERLAY, - DARKEN, - LIGHTEN, - COLOR_DODGE, - COLOR_BURN, - HARD_LIGHT, - SOFT_LIGHT, - DIFFERENCE, - EXCLUSION, - MULTIPLY, - HUE, - SATURATION, - COLOR, - LUMINOSITY, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 29); - static BlendModeProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const BlendModeProto._(super.v, super.n); -} - -/// New enum for FloatingActionButtonLocation -class FloatingActionButtonLocationProto extends $pb.ProtobufEnum { - static const FloatingActionButtonLocationProto FAB_LOCATION_UNSPECIFIED = - FloatingActionButtonLocationProto._( - 0, _omitEnumNames ? '' : 'FAB_LOCATION_UNSPECIFIED'); - static const FloatingActionButtonLocationProto FAB_START_TOP = - FloatingActionButtonLocationProto._( - 1, _omitEnumNames ? '' : 'FAB_START_TOP'); - static const FloatingActionButtonLocationProto FAB_START = - FloatingActionButtonLocationProto._(2, _omitEnumNames ? '' : 'FAB_START'); - static const FloatingActionButtonLocationProto FAB_START_FLOAT = - FloatingActionButtonLocationProto._( - 3, _omitEnumNames ? '' : 'FAB_START_FLOAT'); - static const FloatingActionButtonLocationProto FAB_CENTER_TOP = - FloatingActionButtonLocationProto._( - 4, _omitEnumNames ? '' : 'FAB_CENTER_TOP'); - static const FloatingActionButtonLocationProto FAB_CENTER = - FloatingActionButtonLocationProto._( - 5, _omitEnumNames ? '' : 'FAB_CENTER'); - static const FloatingActionButtonLocationProto FAB_CENTER_FLOAT = - FloatingActionButtonLocationProto._( - 6, _omitEnumNames ? '' : 'FAB_CENTER_FLOAT'); - static const FloatingActionButtonLocationProto FAB_END_TOP = - FloatingActionButtonLocationProto._( - 7, _omitEnumNames ? '' : 'FAB_END_TOP'); - static const FloatingActionButtonLocationProto FAB_END = - FloatingActionButtonLocationProto._(8, _omitEnumNames ? '' : 'FAB_END'); - static const FloatingActionButtonLocationProto FAB_END_FLOAT = - FloatingActionButtonLocationProto._( - 9, _omitEnumNames ? '' : 'FAB_END_FLOAT'); - static const FloatingActionButtonLocationProto FAB_MINI_CENTER_TOP = - FloatingActionButtonLocationProto._( - 10, _omitEnumNames ? '' : 'FAB_MINI_CENTER_TOP'); - static const FloatingActionButtonLocationProto FAB_MINI_CENTER_FLOAT = - FloatingActionButtonLocationProto._( - 11, _omitEnumNames ? '' : 'FAB_MINI_CENTER_FLOAT'); - static const FloatingActionButtonLocationProto FAB_MINI_START_TOP = - FloatingActionButtonLocationProto._( - 12, _omitEnumNames ? '' : 'FAB_MINI_START_TOP'); - static const FloatingActionButtonLocationProto FAB_MINI_START_FLOAT = - FloatingActionButtonLocationProto._( - 13, _omitEnumNames ? '' : 'FAB_MINI_START_FLOAT'); - static const FloatingActionButtonLocationProto FAB_MINI_END_TOP = - FloatingActionButtonLocationProto._( - 14, _omitEnumNames ? '' : 'FAB_MINI_END_TOP'); - static const FloatingActionButtonLocationProto FAB_MINI_END_FLOAT = - FloatingActionButtonLocationProto._( - 15, _omitEnumNames ? '' : 'FAB_MINI_END_FLOAT'); - - static const $core.List values = - [ - FAB_LOCATION_UNSPECIFIED, - FAB_START_TOP, - FAB_START, - FAB_START_FLOAT, - FAB_CENTER_TOP, - FAB_CENTER, - FAB_CENTER_FLOAT, - FAB_END_TOP, - FAB_END, - FAB_END_FLOAT, - FAB_MINI_CENTER_TOP, - FAB_MINI_CENTER_FLOAT, - FAB_MINI_START_TOP, - FAB_MINI_START_FLOAT, - FAB_MINI_END_TOP, - FAB_MINI_END_FLOAT, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 15); - static FloatingActionButtonLocationProto? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const FloatingActionButtonLocationProto._(super.v, super.n); -} - -class GradientData_GradientType extends $pb.ProtobufEnum { - static const GradientData_GradientType GRADIENT_TYPE_UNSPECIFIED = - GradientData_GradientType._( - 0, _omitEnumNames ? '' : 'GRADIENT_TYPE_UNSPECIFIED'); - static const GradientData_GradientType LINEAR = - GradientData_GradientType._(1, _omitEnumNames ? '' : 'LINEAR'); - static const GradientData_GradientType RADIAL = - GradientData_GradientType._(2, _omitEnumNames ? '' : 'RADIAL'); - static const GradientData_GradientType SWEEP = - GradientData_GradientType._(3, _omitEnumNames ? '' : 'SWEEP'); - - static const $core.List values = - [ - GRADIENT_TYPE_UNSPECIFIED, - LINEAR, - RADIAL, - SWEEP, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 3); - static GradientData_GradientType? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const GradientData_GradientType._(super.v, super.n); -} - -/// Predefined alignments -class AlignmentData_PredefinedAlignment extends $pb.ProtobufEnum { - static const AlignmentData_PredefinedAlignment - PREDEFINED_ALIGNMENT_UNSPECIFIED = AlignmentData_PredefinedAlignment._( - 0, _omitEnumNames ? '' : 'PREDEFINED_ALIGNMENT_UNSPECIFIED'); - static const AlignmentData_PredefinedAlignment BOTTOM_CENTER = - AlignmentData_PredefinedAlignment._( - 1, _omitEnumNames ? '' : 'BOTTOM_CENTER'); - static const AlignmentData_PredefinedAlignment BOTTOM_LEFT = - AlignmentData_PredefinedAlignment._( - 2, _omitEnumNames ? '' : 'BOTTOM_LEFT'); - static const AlignmentData_PredefinedAlignment BOTTOM_RIGHT = - AlignmentData_PredefinedAlignment._( - 3, _omitEnumNames ? '' : 'BOTTOM_RIGHT'); - static const AlignmentData_PredefinedAlignment CENTER_ALIGN = - AlignmentData_PredefinedAlignment._( - 4, _omitEnumNames ? '' : 'CENTER_ALIGN'); - static const AlignmentData_PredefinedAlignment CENTER_LEFT = - AlignmentData_PredefinedAlignment._( - 5, _omitEnumNames ? '' : 'CENTER_LEFT'); - static const AlignmentData_PredefinedAlignment CENTER_RIGHT = - AlignmentData_PredefinedAlignment._( - 6, _omitEnumNames ? '' : 'CENTER_RIGHT'); - static const AlignmentData_PredefinedAlignment TOP_CENTER = - AlignmentData_PredefinedAlignment._( - 7, _omitEnumNames ? '' : 'TOP_CENTER'); - static const AlignmentData_PredefinedAlignment TOP_LEFT = - AlignmentData_PredefinedAlignment._(8, _omitEnumNames ? '' : 'TOP_LEFT'); - static const AlignmentData_PredefinedAlignment TOP_RIGHT = - AlignmentData_PredefinedAlignment._(9, _omitEnumNames ? '' : 'TOP_RIGHT'); - - static const $core.List values = - [ - PREDEFINED_ALIGNMENT_UNSPECIFIED, - BOTTOM_CENTER, - BOTTOM_LEFT, - BOTTOM_RIGHT, - CENTER_ALIGN, - CENTER_LEFT, - CENTER_RIGHT, - TOP_CENTER, - TOP_LEFT, - TOP_RIGHT, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 9); - static AlignmentData_PredefinedAlignment? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const AlignmentData_PredefinedAlignment._(super.v, super.n); -} - -class TransformData_TransformType extends $pb.ProtobufEnum { - static const TransformData_TransformType TRANSFORM_TYPE_UNSPECIFIED = - TransformData_TransformType._( - 0, _omitEnumNames ? '' : 'TRANSFORM_TYPE_UNSPECIFIED'); - static const TransformData_TransformType MATRIX_4X4 = - TransformData_TransformType._(1, _omitEnumNames ? '' : 'MATRIX_4X4'); - static const TransformData_TransformType TRANSLATE = - TransformData_TransformType._(2, _omitEnumNames ? '' : 'TRANSLATE'); - static const TransformData_TransformType ROTATE = - TransformData_TransformType._(3, _omitEnumNames ? '' : 'ROTATE'); - static const TransformData_TransformType SCALE = - TransformData_TransformType._(4, _omitEnumNames ? '' : 'SCALE'); - - static const $core.List values = - [ - TRANSFORM_TYPE_UNSPECIFIED, - MATRIX_4X4, - TRANSLATE, - ROTATE, - SCALE, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 4); - static TransformData_TransformType? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const TransformData_TransformType._(super.v, super.n); -} - -const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/generated/sdui.pbgrpc.dart b/lib/src/generated/sdui.pbgrpc.dart deleted file mode 100644 index 57a2a75..0000000 --- a/lib/src/generated/sdui.pbgrpc.dart +++ /dev/null @@ -1,68 +0,0 @@ -// -// Generated code. Do not modify. -// source: sdui.proto -// -// @dart = 3.3 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -import 'dart:async' as $async; -import 'dart:core' as $core; - -import 'package:grpc/service_api.dart' as $grpc; -import 'package:protobuf/protobuf.dart' as $pb; - -import 'sdui.pb.dart' as $0; - -export 'sdui.pb.dart'; - -/// Service definition -@$pb.GrpcServiceName('flutter_sdui.SduiService') -class SduiServiceClient extends $grpc.Client { - /// The hostname for this service. - static const $core.String defaultHost = ''; - - /// OAuth scopes needed for the client. - static const $core.List<$core.String> oauthScopes = [ - '', - ]; - - static final _$getSduiWidget = - $grpc.ClientMethod<$0.SduiRequest, $0.SduiWidgetData>( - '/flutter_sdui.SduiService/GetSduiWidget', - ($0.SduiRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.SduiWidgetData.fromBuffer(value)); - - SduiServiceClient(super.channel, {super.options, super.interceptors}); - - $grpc.ResponseFuture<$0.SduiWidgetData> getSduiWidget($0.SduiRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$getSduiWidget, request, options: options); - } -} - -@$pb.GrpcServiceName('flutter_sdui.SduiService') -abstract class SduiServiceBase extends $grpc.Service { - $core.String get $name => 'flutter_sdui.SduiService'; - - SduiServiceBase() { - $addMethod($grpc.ServiceMethod<$0.SduiRequest, $0.SduiWidgetData>( - 'GetSduiWidget', - getSduiWidget_Pre, - false, - false, - ($core.List<$core.int> value) => $0.SduiRequest.fromBuffer(value), - ($0.SduiWidgetData value) => value.writeToBuffer())); - } - - $async.Future<$0.SduiWidgetData> getSduiWidget_Pre( - $grpc.ServiceCall $call, $async.Future<$0.SduiRequest> $request) async { - return getSduiWidget($call, await $request); - } - - $async.Future<$0.SduiWidgetData> getSduiWidget( - $grpc.ServiceCall call, $0.SduiRequest request); -} diff --git a/lib/src/generated/sdui.pbjson.dart b/lib/src/generated/sdui.pbjson.dart deleted file mode 100644 index 14b1ae9..0000000 --- a/lib/src/generated/sdui.pbjson.dart +++ /dev/null @@ -1,2011 +0,0 @@ -// -// Generated code. Do not modify. -// source: sdui.proto -// -// @dart = 3.3 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -import 'dart:convert' as $convert; -import 'dart:core' as $core; -import 'dart:typed_data' as $typed_data; - -@$core.Deprecated('Use widgetTypeDescriptor instead') -const WidgetType$json = { - '1': 'WidgetType', - '2': [ - {'1': 'WIDGET_TYPE_UNSPECIFIED', '2': 0}, - {'1': 'COLUMN', '2': 1}, - {'1': 'ROW', '2': 2}, - {'1': 'TEXT', '2': 3}, - {'1': 'IMAGE', '2': 4}, - {'1': 'SIZED_BOX', '2': 5}, - {'1': 'CONTAINER', '2': 6}, - {'1': 'SCAFFOLD', '2': 7}, - {'1': 'SPACER', '2': 8}, - {'1': 'ICON', '2': 9}, - ], -}; - -/// Descriptor for `WidgetType`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List widgetTypeDescriptor = $convert.base64Decode( - 'CgpXaWRnZXRUeXBlEhsKF1dJREdFVF9UWVBFX1VOU1BFQ0lGSUVEEAASCgoGQ09MVU1OEAESBw' - 'oDUk9XEAISCAoEVEVYVBADEgkKBUlNQUdFEAQSDQoJU0laRURfQk9YEAUSDQoJQ09OVEFJTkVS' - 'EAYSDAoIU0NBRkZPTEQQBxIKCgZTUEFDRVIQCBIICgRJQ09OEAk='); - -@$core.Deprecated('Use boxFitProtoDescriptor instead') -const BoxFitProto$json = { - '1': 'BoxFitProto', - '2': [ - {'1': 'BOX_FIT_UNSPECIFIED', '2': 0}, - {'1': 'FILL', '2': 1}, - {'1': 'CONTAIN', '2': 2}, - {'1': 'COVER', '2': 3}, - {'1': 'FIT_WIDTH', '2': 4}, - {'1': 'FIT_HEIGHT', '2': 5}, - {'1': 'NONE_BOX_FIT', '2': 6}, - {'1': 'SCALE_DOWN', '2': 7}, - ], -}; - -/// Descriptor for `BoxFitProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List boxFitProtoDescriptor = $convert.base64Decode( - 'CgtCb3hGaXRQcm90bxIXChNCT1hfRklUX1VOU1BFQ0lGSUVEEAASCAoERklMTBABEgsKB0NPTl' - 'RBSU4QAhIJCgVDT1ZFUhADEg0KCUZJVF9XSURUSBAEEg4KCkZJVF9IRUlHSFQQBRIQCgxOT05F' - 'X0JPWF9GSVQQBhIOCgpTQ0FMRV9ET1dOEAc='); - -@$core.Deprecated('Use borderStyleProtoDescriptor instead') -const BorderStyleProto$json = { - '1': 'BorderStyleProto', - '2': [ - {'1': 'BORDER_STYLE_UNSPECIFIED', '2': 0}, - {'1': 'SOLID', '2': 1}, - {'1': 'NONE_BORDER', '2': 2}, - ], -}; - -/// Descriptor for `BorderStyleProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List borderStyleProtoDescriptor = $convert.base64Decode( - 'ChBCb3JkZXJTdHlsZVByb3RvEhwKGEJPUkRFUl9TVFlMRV9VTlNQRUNJRklFRBAAEgkKBVNPTE' - 'lEEAESDwoLTk9ORV9CT1JERVIQAg=='); - -@$core.Deprecated('Use boxShapeProtoDescriptor instead') -const BoxShapeProto$json = { - '1': 'BoxShapeProto', - '2': [ - {'1': 'BOX_SHAPE_UNSPECIFIED', '2': 0}, - {'1': 'RECTANGLE', '2': 1}, - {'1': 'CIRCLE', '2': 2}, - ], -}; - -/// Descriptor for `BoxShapeProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List boxShapeProtoDescriptor = $convert.base64Decode( - 'Cg1Cb3hTaGFwZVByb3RvEhkKFUJPWF9TSEFQRV9VTlNQRUNJRklFRBAAEg0KCVJFQ1RBTkdMRR' - 'ABEgoKBkNJUkNMRRAC'); - -@$core.Deprecated('Use imageRepeatProtoDescriptor instead') -const ImageRepeatProto$json = { - '1': 'ImageRepeatProto', - '2': [ - {'1': 'IMAGE_REPEAT_UNSPECIFIED', '2': 0}, - {'1': 'REPEAT', '2': 1}, - {'1': 'REPEAT_X', '2': 2}, - {'1': 'REPEAT_Y', '2': 3}, - {'1': 'NO_REPEAT', '2': 4}, - ], -}; - -/// Descriptor for `ImageRepeatProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List imageRepeatProtoDescriptor = $convert.base64Decode( - 'ChBJbWFnZVJlcGVhdFByb3RvEhwKGElNQUdFX1JFUEVBVF9VTlNQRUNJRklFRBAAEgoKBlJFUE' - 'VBVBABEgwKCFJFUEVBVF9YEAISDAoIUkVQRUFUX1kQAxINCglOT19SRVBFQVQQBA=='); - -@$core.Deprecated('Use filterQualityProtoDescriptor instead') -const FilterQualityProto$json = { - '1': 'FilterQualityProto', - '2': [ - {'1': 'FILTER_QUALITY_UNSPECIFIED', '2': 0}, - {'1': 'NONE_FQ', '2': 1}, - {'1': 'LOW', '2': 2}, - {'1': 'MEDIUM', '2': 3}, - {'1': 'HIGH', '2': 4}, - ], -}; - -/// Descriptor for `FilterQualityProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List filterQualityProtoDescriptor = $convert.base64Decode( - 'ChJGaWx0ZXJRdWFsaXR5UHJvdG8SHgoaRklMVEVSX1FVQUxJVFlfVU5TUEVDSUZJRUQQABILCg' - 'dOT05FX0ZREAESBwoDTE9XEAISCgoGTUVESVVNEAMSCAoESElHSBAE'); - -@$core.Deprecated('Use mainAxisAlignmentProtoDescriptor instead') -const MainAxisAlignmentProto$json = { - '1': 'MainAxisAlignmentProto', - '2': [ - {'1': 'MAIN_AXIS_ALIGNMENT_UNSPECIFIED', '2': 0}, - {'1': 'MAIN_AXIS_START', '2': 1}, - {'1': 'MAIN_AXIS_END', '2': 2}, - {'1': 'MAIN_AXIS_CENTER', '2': 3}, - {'1': 'SPACE_BETWEEN', '2': 4}, - {'1': 'SPACE_AROUND', '2': 5}, - {'1': 'SPACE_EVENLY', '2': 6}, - ], -}; - -/// Descriptor for `MainAxisAlignmentProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List mainAxisAlignmentProtoDescriptor = $convert.base64Decode( - 'ChZNYWluQXhpc0FsaWdubWVudFByb3RvEiMKH01BSU5fQVhJU19BTElHTk1FTlRfVU5TUEVDSU' - 'ZJRUQQABITCg9NQUlOX0FYSVNfU1RBUlQQARIRCg1NQUlOX0FYSVNfRU5EEAISFAoQTUFJTl9B' - 'WElTX0NFTlRFUhADEhEKDVNQQUNFX0JFVFdFRU4QBBIQCgxTUEFDRV9BUk9VTkQQBRIQCgxTUE' - 'FDRV9FVkVOTFkQBg=='); - -@$core.Deprecated('Use crossAxisAlignmentProtoDescriptor instead') -const CrossAxisAlignmentProto$json = { - '1': 'CrossAxisAlignmentProto', - '2': [ - {'1': 'CROSS_AXIS_ALIGNMENT_UNSPECIFIED', '2': 0}, - {'1': 'CROSS_AXIS_START', '2': 1}, - {'1': 'CROSS_AXIS_END', '2': 2}, - {'1': 'CROSS_AXIS_CENTER', '2': 3}, - {'1': 'STRETCH', '2': 4}, - {'1': 'BASELINE', '2': 5}, - ], -}; - -/// Descriptor for `CrossAxisAlignmentProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List crossAxisAlignmentProtoDescriptor = $convert.base64Decode( - 'ChdDcm9zc0F4aXNBbGlnbm1lbnRQcm90bxIkCiBDUk9TU19BWElTX0FMSUdOTUVOVF9VTlNQRU' - 'NJRklFRBAAEhQKEENST1NTX0FYSVNfU1RBUlQQARISCg5DUk9TU19BWElTX0VORBACEhUKEUNS' - 'T1NTX0FYSVNfQ0VOVEVSEAMSCwoHU1RSRVRDSBAEEgwKCEJBU0VMSU5FEAU='); - -@$core.Deprecated('Use mainAxisSizeProtoDescriptor instead') -const MainAxisSizeProto$json = { - '1': 'MainAxisSizeProto', - '2': [ - {'1': 'MAIN_AXIS_SIZE_UNSPECIFIED', '2': 0}, - {'1': 'MIN', '2': 1}, - {'1': 'MAX', '2': 2}, - ], -}; - -/// Descriptor for `MainAxisSizeProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List mainAxisSizeProtoDescriptor = $convert.base64Decode( - 'ChFNYWluQXhpc1NpemVQcm90bxIeChpNQUlOX0FYSVNfU0laRV9VTlNQRUNJRklFRBAAEgcKA0' - '1JThABEgcKA01BWBAC'); - -@$core.Deprecated('Use textDirectionProtoDescriptor instead') -const TextDirectionProto$json = { - '1': 'TextDirectionProto', - '2': [ - {'1': 'TEXT_DIRECTION_UNSPECIFIED', '2': 0}, - {'1': 'LTR', '2': 1}, - {'1': 'RTL', '2': 2}, - ], -}; - -/// Descriptor for `TextDirectionProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List textDirectionProtoDescriptor = $convert.base64Decode( - 'ChJUZXh0RGlyZWN0aW9uUHJvdG8SHgoaVEVYVF9ESVJFQ1RJT05fVU5TUEVDSUZJRUQQABIHCg' - 'NMVFIQARIHCgNSVEwQAg=='); - -@$core.Deprecated('Use verticalDirectionProtoDescriptor instead') -const VerticalDirectionProto$json = { - '1': 'VerticalDirectionProto', - '2': [ - {'1': 'VERTICAL_DIRECTION_UNSPECIFIED', '2': 0}, - {'1': 'UP', '2': 1}, - {'1': 'DOWN', '2': 2}, - ], -}; - -/// Descriptor for `VerticalDirectionProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List verticalDirectionProtoDescriptor = - $convert.base64Decode( - 'ChZWZXJ0aWNhbERpcmVjdGlvblByb3RvEiIKHlZFUlRJQ0FMX0RJUkVDVElPTl9VTlNQRUNJRk' - 'lFRBAAEgYKAlVQEAESCAoERE9XThAC'); - -@$core.Deprecated('Use textBaselineProtoDescriptor instead') -const TextBaselineProto$json = { - '1': 'TextBaselineProto', - '2': [ - {'1': 'TEXT_BASELINE_UNSPECIFIED', '2': 0}, - {'1': 'ALPHABETIC', '2': 1}, - {'1': 'IDEOGRAPHIC', '2': 2}, - ], -}; - -/// Descriptor for `TextBaselineProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List textBaselineProtoDescriptor = $convert.base64Decode( - 'ChFUZXh0QmFzZWxpbmVQcm90bxIdChlURVhUX0JBU0VMSU5FX1VOU1BFQ0lGSUVEEAASDgoKQU' - 'xQSEFCRVRJQxABEg8KC0lERU9HUkFQSElDEAI='); - -@$core.Deprecated('Use clipProtoDescriptor instead') -const ClipProto$json = { - '1': 'ClipProto', - '2': [ - {'1': 'CLIP_UNSPECIFIED', '2': 0}, - {'1': 'CLIP_NONE', '2': 1}, - {'1': 'HARD_EDGE', '2': 2}, - {'1': 'ANTI_ALIAS', '2': 3}, - {'1': 'ANTI_ALIAS_WITH_SAVE_LAYER', '2': 4}, - ], -}; - -/// Descriptor for `ClipProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List clipProtoDescriptor = $convert.base64Decode( - 'CglDbGlwUHJvdG8SFAoQQ0xJUF9VTlNQRUNJRklFRBAAEg0KCUNMSVBfTk9ORRABEg0KCUhBUk' - 'RfRURHRRACEg4KCkFOVElfQUxJQVMQAxIeChpBTlRJX0FMSUFTX1dJVEhfU0FWRV9MQVlFUhAE'); - -@$core.Deprecated('Use textAlignProtoDescriptor instead') -const TextAlignProto$json = { - '1': 'TextAlignProto', - '2': [ - {'1': 'TEXT_ALIGN_UNSPECIFIED', '2': 0}, - {'1': 'LEFT', '2': 1}, - {'1': 'RIGHT', '2': 2}, - {'1': 'TEXT_ALIGN_CENTER', '2': 3}, - {'1': 'JUSTIFY', '2': 4}, - {'1': 'TEXT_ALIGN_START', '2': 5}, - {'1': 'TEXT_ALIGN_END', '2': 6}, - ], -}; - -/// Descriptor for `TextAlignProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List textAlignProtoDescriptor = $convert.base64Decode( - 'Cg5UZXh0QWxpZ25Qcm90bxIaChZURVhUX0FMSUdOX1VOU1BFQ0lGSUVEEAASCAoETEVGVBABEg' - 'kKBVJJR0hUEAISFQoRVEVYVF9BTElHTl9DRU5URVIQAxILCgdKVVNUSUZZEAQSFAoQVEVYVF9B' - 'TElHTl9TVEFSVBAFEhIKDlRFWFRfQUxJR05fRU5EEAY='); - -@$core.Deprecated('Use textOverflowProtoDescriptor instead') -const TextOverflowProto$json = { - '1': 'TextOverflowProto', - '2': [ - {'1': 'TEXT_OVERFLOW_UNSPECIFIED', '2': 0}, - {'1': 'CLIP', '2': 1}, - {'1': 'ELLIPSIS', '2': 2}, - {'1': 'FADE', '2': 3}, - {'1': 'VISIBLE', '2': 4}, - ], -}; - -/// Descriptor for `TextOverflowProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List textOverflowProtoDescriptor = $convert.base64Decode( - 'ChFUZXh0T3ZlcmZsb3dQcm90bxIdChlURVhUX09WRVJGTE9XX1VOU1BFQ0lGSUVEEAASCAoEQ0' - 'xJUBABEgwKCEVMTElQU0lTEAISCAoERkFERRADEgsKB1ZJU0lCTEUQBA=='); - -@$core.Deprecated('Use textDecorationProtoDescriptor instead') -const TextDecorationProto$json = { - '1': 'TextDecorationProto', - '2': [ - {'1': 'TEXT_DECORATION_UNSPECIFIED', '2': 0}, - {'1': 'TEXT_DECORATION_NONE', '2': 1}, - {'1': 'UNDERLINE', '2': 2}, - {'1': 'OVERLINE', '2': 3}, - {'1': 'LINE_THROUGH', '2': 4}, - ], -}; - -/// Descriptor for `TextDecorationProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List textDecorationProtoDescriptor = $convert.base64Decode( - 'ChNUZXh0RGVjb3JhdGlvblByb3RvEh8KG1RFWFRfREVDT1JBVElPTl9VTlNQRUNJRklFRBAAEh' - 'gKFFRFWFRfREVDT1JBVElPTl9OT05FEAESDQoJVU5ERVJMSU5FEAISDAoIT1ZFUkxJTkUQAxIQ' - 'CgxMSU5FX1RIUk9VR0gQBA=='); - -@$core.Deprecated('Use fontStyleProtoDescriptor instead') -const FontStyleProto$json = { - '1': 'FontStyleProto', - '2': [ - {'1': 'FONT_STYLE_UNSPECIFIED', '2': 0}, - {'1': 'NORMAL', '2': 1}, - {'1': 'ITALIC', '2': 2}, - ], -}; - -/// Descriptor for `FontStyleProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List fontStyleProtoDescriptor = $convert.base64Decode( - 'Cg5Gb250U3R5bGVQcm90bxIaChZGT05UX1NUWUxFX1VOU1BFQ0lGSUVEEAASCgoGTk9STUFMEA' - 'ESCgoGSVRBTElDEAI='); - -@$core.Deprecated('Use blendModeProtoDescriptor instead') -const BlendModeProto$json = { - '1': 'BlendModeProto', - '2': [ - {'1': 'BLEND_MODE_UNSPECIFIED', '2': 0}, - {'1': 'CLEAR', '2': 1}, - {'1': 'SRC', '2': 2}, - {'1': 'DST', '2': 3}, - {'1': 'SRC_OVER', '2': 4}, - {'1': 'DST_OVER', '2': 5}, - {'1': 'SRC_IN', '2': 6}, - {'1': 'DST_IN', '2': 7}, - {'1': 'SRC_OUT', '2': 8}, - {'1': 'DST_OUT', '2': 9}, - {'1': 'SRC_ATOP', '2': 10}, - {'1': 'DST_ATOP', '2': 11}, - {'1': 'XOR', '2': 12}, - {'1': 'PLUS', '2': 13}, - {'1': 'MODULATE', '2': 14}, - {'1': 'SCREEN', '2': 15}, - {'1': 'OVERLAY', '2': 16}, - {'1': 'DARKEN', '2': 17}, - {'1': 'LIGHTEN', '2': 18}, - {'1': 'COLOR_DODGE', '2': 19}, - {'1': 'COLOR_BURN', '2': 20}, - {'1': 'HARD_LIGHT', '2': 21}, - {'1': 'SOFT_LIGHT', '2': 22}, - {'1': 'DIFFERENCE', '2': 23}, - {'1': 'EXCLUSION', '2': 24}, - {'1': 'MULTIPLY', '2': 25}, - {'1': 'HUE', '2': 26}, - {'1': 'SATURATION', '2': 27}, - {'1': 'COLOR', '2': 28}, - {'1': 'LUMINOSITY', '2': 29}, - ], -}; - -/// Descriptor for `BlendModeProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List blendModeProtoDescriptor = $convert.base64Decode( - 'Cg5CbGVuZE1vZGVQcm90bxIaChZCTEVORF9NT0RFX1VOU1BFQ0lGSUVEEAASCQoFQ0xFQVIQAR' - 'IHCgNTUkMQAhIHCgNEU1QQAxIMCghTUkNfT1ZFUhAEEgwKCERTVF9PVkVSEAUSCgoGU1JDX0lO' - 'EAYSCgoGRFNUX0lOEAcSCwoHU1JDX09VVBAIEgsKB0RTVF9PVVQQCRIMCghTUkNfQVRPUBAKEg' - 'wKCERTVF9BVE9QEAsSBwoDWE9SEAwSCAoEUExVUxANEgwKCE1PRFVMQVRFEA4SCgoGU0NSRUVO' - 'EA8SCwoHT1ZFUkxBWRAQEgoKBkRBUktFThAREgsKB0xJR0hURU4QEhIPCgtDT0xPUl9ET0RHRR' - 'ATEg4KCkNPTE9SX0JVUk4QFBIOCgpIQVJEX0xJR0hUEBUSDgoKU09GVF9MSUdIVBAWEg4KCkRJ' - 'RkZFUkVOQ0UQFxINCglFWENMVVNJT04QGBIMCghNVUxUSVBMWRAZEgcKA0hVRRAaEg4KClNBVF' - 'VSQVRJT04QGxIJCgVDT0xPUhAcEg4KCkxVTUlOT1NJVFkQHQ=='); - -@$core.Deprecated('Use floatingActionButtonLocationProtoDescriptor instead') -const FloatingActionButtonLocationProto$json = { - '1': 'FloatingActionButtonLocationProto', - '2': [ - {'1': 'FAB_LOCATION_UNSPECIFIED', '2': 0}, - {'1': 'FAB_START_TOP', '2': 1}, - {'1': 'FAB_START', '2': 2}, - {'1': 'FAB_START_FLOAT', '2': 3}, - {'1': 'FAB_CENTER_TOP', '2': 4}, - {'1': 'FAB_CENTER', '2': 5}, - {'1': 'FAB_CENTER_FLOAT', '2': 6}, - {'1': 'FAB_END_TOP', '2': 7}, - {'1': 'FAB_END', '2': 8}, - {'1': 'FAB_END_FLOAT', '2': 9}, - {'1': 'FAB_MINI_CENTER_TOP', '2': 10}, - {'1': 'FAB_MINI_CENTER_FLOAT', '2': 11}, - {'1': 'FAB_MINI_START_TOP', '2': 12}, - {'1': 'FAB_MINI_START_FLOAT', '2': 13}, - {'1': 'FAB_MINI_END_TOP', '2': 14}, - {'1': 'FAB_MINI_END_FLOAT', '2': 15}, - ], -}; - -/// Descriptor for `FloatingActionButtonLocationProto`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List floatingActionButtonLocationProtoDescriptor = $convert.base64Decode( - 'CiFGbG9hdGluZ0FjdGlvbkJ1dHRvbkxvY2F0aW9uUHJvdG8SHAoYRkFCX0xPQ0FUSU9OX1VOU1' - 'BFQ0lGSUVEEAASEQoNRkFCX1NUQVJUX1RPUBABEg0KCUZBQl9TVEFSVBACEhMKD0ZBQl9TVEFS' - 'VF9GTE9BVBADEhIKDkZBQl9DRU5URVJfVE9QEAQSDgoKRkFCX0NFTlRFUhAFEhQKEEZBQl9DRU' - '5URVJfRkxPQVQQBhIPCgtGQUJfRU5EX1RPUBAHEgsKB0ZBQl9FTkQQCBIRCg1GQUJfRU5EX0ZM' - 'T0FUEAkSFwoTRkFCX01JTklfQ0VOVEVSX1RPUBAKEhkKFUZBQl9NSU5JX0NFTlRFUl9GTE9BVB' - 'ALEhYKEkZBQl9NSU5JX1NUQVJUX1RPUBAMEhgKFEZBQl9NSU5JX1NUQVJUX0ZMT0FUEA0SFAoQ' - 'RkFCX01JTklfRU5EX1RPUBAOEhYKEkZBQl9NSU5JX0VORF9GTE9BVBAP'); - -@$core.Deprecated('Use sduiWidgetDataDescriptor instead') -const SduiWidgetData$json = { - '1': 'SduiWidgetData', - '2': [ - { - '1': 'type', - '3': 1, - '4': 1, - '5': 14, - '6': '.flutter_sdui.WidgetType', - '10': 'type' - }, - { - '1': 'string_attributes', - '3': 2, - '4': 3, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData.StringAttributesEntry', - '10': 'stringAttributes' - }, - { - '1': 'double_attributes', - '3': 3, - '4': 3, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData.DoubleAttributesEntry', - '10': 'doubleAttributes' - }, - { - '1': 'bool_attributes', - '3': 4, - '4': 3, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData.BoolAttributesEntry', - '10': 'boolAttributes' - }, - { - '1': 'int_attributes', - '3': 5, - '4': 3, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData.IntAttributesEntry', - '10': 'intAttributes' - }, - { - '1': 'text_style', - '3': 6, - '4': 1, - '5': 11, - '6': '.flutter_sdui.TextStyleData', - '10': 'textStyle' - }, - { - '1': 'padding', - '3': 7, - '4': 1, - '5': 11, - '6': '.flutter_sdui.EdgeInsetsData', - '10': 'padding' - }, - { - '1': 'margin', - '3': 8, - '4': 1, - '5': 11, - '6': '.flutter_sdui.EdgeInsetsData', - '10': 'margin' - }, - { - '1': 'color', - '3': 9, - '4': 1, - '5': 11, - '6': '.flutter_sdui.ColorData', - '10': 'color' - }, - { - '1': 'icon', - '3': 10, - '4': 1, - '5': 11, - '6': '.flutter_sdui.IconDataMessage', - '10': 'icon' - }, - { - '1': 'box_decoration', - '3': 11, - '4': 1, - '5': 11, - '6': '.flutter_sdui.BoxDecorationData', - '10': 'boxDecoration' - }, - { - '1': 'children', - '3': 12, - '4': 3, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'children' - }, - { - '1': 'child', - '3': 13, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'child' - }, - { - '1': 'app_bar', - '3': 14, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'appBar' - }, - { - '1': 'body', - '3': 15, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'body' - }, - { - '1': 'floating_action_button', - '3': 16, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'floatingActionButton' - }, - { - '1': 'background_color', - '3': 17, - '4': 1, - '5': 11, - '6': '.flutter_sdui.ColorData', - '10': 'backgroundColor' - }, - { - '1': 'bottom_navigation_bar', - '3': 18, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'bottomNavigationBar' - }, - { - '1': 'drawer', - '3': 19, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'drawer' - }, - { - '1': 'end_drawer', - '3': 20, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'endDrawer' - }, - { - '1': 'bottom_sheet', - '3': 21, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'bottomSheet' - }, - { - '1': 'resize_to_avoid_bottom_inset', - '3': 22, - '4': 1, - '5': 8, - '10': 'resizeToAvoidBottomInset' - }, - {'1': 'primary', '3': 23, '4': 1, '5': 8, '10': 'primary'}, - { - '1': 'floating_action_button_location', - '3': 24, - '4': 1, - '5': 14, - '6': '.flutter_sdui.FloatingActionButtonLocationProto', - '10': 'floatingActionButtonLocation' - }, - {'1': 'extend_body', '3': 25, '4': 1, '5': 8, '10': 'extendBody'}, - { - '1': 'extend_body_behind_app_bar', - '3': 26, - '4': 1, - '5': 8, - '10': 'extendBodyBehindAppBar' - }, - { - '1': 'drawer_scrim_color', - '3': 27, - '4': 1, - '5': 11, - '6': '.flutter_sdui.ColorData', - '10': 'drawerScrimColor' - }, - { - '1': 'drawer_edge_drag_width', - '3': 28, - '4': 1, - '5': 1, - '10': 'drawerEdgeDragWidth' - }, - { - '1': 'drawer_enable_open_drag_gesture', - '3': 29, - '4': 1, - '5': 8, - '10': 'drawerEnableOpenDragGesture' - }, - { - '1': 'end_drawer_enable_open_drag_gesture', - '3': 30, - '4': 1, - '5': 8, - '10': 'endDrawerEnableOpenDragGesture' - }, - { - '1': 'main_axis_alignment', - '3': 31, - '4': 1, - '5': 14, - '6': '.flutter_sdui.MainAxisAlignmentProto', - '10': 'mainAxisAlignment' - }, - { - '1': 'cross_axis_alignment', - '3': 32, - '4': 1, - '5': 14, - '6': '.flutter_sdui.CrossAxisAlignmentProto', - '10': 'crossAxisAlignment' - }, - { - '1': 'main_axis_size', - '3': 33, - '4': 1, - '5': 14, - '6': '.flutter_sdui.MainAxisSizeProto', - '10': 'mainAxisSize' - }, - { - '1': 'text_direction', - '3': 34, - '4': 1, - '5': 14, - '6': '.flutter_sdui.TextDirectionProto', - '10': 'textDirection' - }, - { - '1': 'vertical_direction', - '3': 35, - '4': 1, - '5': 14, - '6': '.flutter_sdui.VerticalDirectionProto', - '10': 'verticalDirection' - }, - { - '1': 'text_baseline', - '3': 36, - '4': 1, - '5': 14, - '6': '.flutter_sdui.TextBaselineProto', - '10': 'textBaseline' - }, - { - '1': 'alignment', - '3': 37, - '4': 1, - '5': 11, - '6': '.flutter_sdui.AlignmentData', - '10': 'alignment' - }, - { - '1': 'constraints', - '3': 38, - '4': 1, - '5': 11, - '6': '.flutter_sdui.BoxConstraintsData', - '10': 'constraints' - }, - { - '1': 'transform', - '3': 39, - '4': 1, - '5': 11, - '6': '.flutter_sdui.TransformData', - '10': 'transform' - }, - { - '1': 'transform_alignment', - '3': 40, - '4': 1, - '5': 11, - '6': '.flutter_sdui.AlignmentData', - '10': 'transformAlignment' - }, - { - '1': 'clip_behavior', - '3': 41, - '4': 1, - '5': 14, - '6': '.flutter_sdui.ClipProto', - '10': 'clipBehavior' - }, - { - '1': 'text_align', - '3': 42, - '4': 1, - '5': 14, - '6': '.flutter_sdui.TextAlignProto', - '10': 'textAlign' - }, - { - '1': 'overflow', - '3': 43, - '4': 1, - '5': 14, - '6': '.flutter_sdui.TextOverflowProto', - '10': 'overflow' - }, - {'1': 'max_lines', '3': 44, '4': 1, '5': 5, '10': 'maxLines'}, - {'1': 'soft_wrap', '3': 45, '4': 1, '5': 8, '10': 'softWrap'}, - {'1': 'letter_spacing', '3': 46, '4': 1, '5': 1, '10': 'letterSpacing'}, - {'1': 'word_spacing', '3': 47, '4': 1, '5': 1, '10': 'wordSpacing'}, - {'1': 'height', '3': 48, '4': 1, '5': 1, '10': 'height'}, - {'1': 'font_family', '3': 49, '4': 1, '5': 9, '10': 'fontFamily'}, - { - '1': 'repeat', - '3': 50, - '4': 1, - '5': 14, - '6': '.flutter_sdui.ImageRepeatProto', - '10': 'repeat' - }, - { - '1': 'color_blend_mode', - '3': 51, - '4': 1, - '5': 14, - '6': '.flutter_sdui.BlendModeProto', - '10': 'colorBlendMode' - }, - { - '1': 'center_slice', - '3': 52, - '4': 1, - '5': 11, - '6': '.flutter_sdui.RectData', - '10': 'centerSlice' - }, - { - '1': 'match_text_direction', - '3': 53, - '4': 1, - '5': 8, - '10': 'matchTextDirection' - }, - {'1': 'gapless_playback', '3': 54, '4': 1, '5': 8, '10': 'gaplessPlayback'}, - { - '1': 'filter_quality', - '3': 55, - '4': 1, - '5': 14, - '6': '.flutter_sdui.FilterQualityProto', - '10': 'filterQuality' - }, - {'1': 'cache_width', '3': 56, '4': 1, '5': 5, '10': 'cacheWidth'}, - {'1': 'cache_height', '3': 57, '4': 1, '5': 5, '10': 'cacheHeight'}, - {'1': 'scale', '3': 58, '4': 1, '5': 1, '10': 'scale'}, - {'1': 'semantic_label', '3': 59, '4': 1, '5': 9, '10': 'semanticLabel'}, - { - '1': 'error_widget', - '3': 60, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'errorWidget' - }, - { - '1': 'loading_widget', - '3': 61, - '4': 1, - '5': 11, - '6': '.flutter_sdui.SduiWidgetData', - '10': 'loadingWidget' - }, - {'1': 'opacity', '3': 62, '4': 1, '5': 1, '10': 'opacity'}, - { - '1': 'apply_text_scaling', - '3': 63, - '4': 1, - '5': 8, - '10': 'applyTextScaling' - }, - { - '1': 'shadows', - '3': 64, - '4': 3, - '5': 11, - '6': '.flutter_sdui.ShadowData', - '10': 'shadows' - }, - ], - '3': [ - SduiWidgetData_StringAttributesEntry$json, - SduiWidgetData_DoubleAttributesEntry$json, - SduiWidgetData_BoolAttributesEntry$json, - SduiWidgetData_IntAttributesEntry$json - ], -}; - -@$core.Deprecated('Use sduiWidgetDataDescriptor instead') -const SduiWidgetData_StringAttributesEntry$json = { - '1': 'StringAttributesEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, - ], - '7': {'7': true}, -}; - -@$core.Deprecated('Use sduiWidgetDataDescriptor instead') -const SduiWidgetData_DoubleAttributesEntry$json = { - '1': 'DoubleAttributesEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 1, '10': 'value'}, - ], - '7': {'7': true}, -}; - -@$core.Deprecated('Use sduiWidgetDataDescriptor instead') -const SduiWidgetData_BoolAttributesEntry$json = { - '1': 'BoolAttributesEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 8, '10': 'value'}, - ], - '7': {'7': true}, -}; - -@$core.Deprecated('Use sduiWidgetDataDescriptor instead') -const SduiWidgetData_IntAttributesEntry$json = { - '1': 'IntAttributesEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - {'1': 'value', '3': 2, '4': 1, '5': 5, '10': 'value'}, - ], - '7': {'7': true}, -}; - -/// Descriptor for `SduiWidgetData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sduiWidgetDataDescriptor = $convert.base64Decode( - 'Cg5TZHVpV2lkZ2V0RGF0YRIsCgR0eXBlGAEgASgOMhguZmx1dHRlcl9zZHVpLldpZGdldFR5cG' - 'VSBHR5cGUSXwoRc3RyaW5nX2F0dHJpYnV0ZXMYAiADKAsyMi5mbHV0dGVyX3NkdWkuU2R1aVdp' - 'ZGdldERhdGEuU3RyaW5nQXR0cmlidXRlc0VudHJ5UhBzdHJpbmdBdHRyaWJ1dGVzEl8KEWRvdW' - 'JsZV9hdHRyaWJ1dGVzGAMgAygLMjIuZmx1dHRlcl9zZHVpLlNkdWlXaWRnZXREYXRhLkRvdWJs' - 'ZUF0dHJpYnV0ZXNFbnRyeVIQZG91YmxlQXR0cmlidXRlcxJZCg9ib29sX2F0dHJpYnV0ZXMYBC' - 'ADKAsyMC5mbHV0dGVyX3NkdWkuU2R1aVdpZGdldERhdGEuQm9vbEF0dHJpYnV0ZXNFbnRyeVIO' - 'Ym9vbEF0dHJpYnV0ZXMSVgoOaW50X2F0dHJpYnV0ZXMYBSADKAsyLy5mbHV0dGVyX3NkdWkuU2' - 'R1aVdpZGdldERhdGEuSW50QXR0cmlidXRlc0VudHJ5Ug1pbnRBdHRyaWJ1dGVzEjoKCnRleHRf' - 'c3R5bGUYBiABKAsyGy5mbHV0dGVyX3NkdWkuVGV4dFN0eWxlRGF0YVIJdGV4dFN0eWxlEjYKB3' - 'BhZGRpbmcYByABKAsyHC5mbHV0dGVyX3NkdWkuRWRnZUluc2V0c0RhdGFSB3BhZGRpbmcSNAoG' - 'bWFyZ2luGAggASgLMhwuZmx1dHRlcl9zZHVpLkVkZ2VJbnNldHNEYXRhUgZtYXJnaW4SLQoFY2' - '9sb3IYCSABKAsyFy5mbHV0dGVyX3NkdWkuQ29sb3JEYXRhUgVjb2xvchIxCgRpY29uGAogASgL' - 'Mh0uZmx1dHRlcl9zZHVpLkljb25EYXRhTWVzc2FnZVIEaWNvbhJGCg5ib3hfZGVjb3JhdGlvbh' - 'gLIAEoCzIfLmZsdXR0ZXJfc2R1aS5Cb3hEZWNvcmF0aW9uRGF0YVINYm94RGVjb3JhdGlvbhI4' - 'CghjaGlsZHJlbhgMIAMoCzIcLmZsdXR0ZXJfc2R1aS5TZHVpV2lkZ2V0RGF0YVIIY2hpbGRyZW' - '4SMgoFY2hpbGQYDSABKAsyHC5mbHV0dGVyX3NkdWkuU2R1aVdpZGdldERhdGFSBWNoaWxkEjUK' - 'B2FwcF9iYXIYDiABKAsyHC5mbHV0dGVyX3NkdWkuU2R1aVdpZGdldERhdGFSBmFwcEJhchIwCg' - 'Rib2R5GA8gASgLMhwuZmx1dHRlcl9zZHVpLlNkdWlXaWRnZXREYXRhUgRib2R5ElIKFmZsb2F0' - 'aW5nX2FjdGlvbl9idXR0b24YECABKAsyHC5mbHV0dGVyX3NkdWkuU2R1aVdpZGdldERhdGFSFG' - 'Zsb2F0aW5nQWN0aW9uQnV0dG9uEkIKEGJhY2tncm91bmRfY29sb3IYESABKAsyFy5mbHV0dGVy' - 'X3NkdWkuQ29sb3JEYXRhUg9iYWNrZ3JvdW5kQ29sb3ISUAoVYm90dG9tX25hdmlnYXRpb25fYm' - 'FyGBIgASgLMhwuZmx1dHRlcl9zZHVpLlNkdWlXaWRnZXREYXRhUhNib3R0b21OYXZpZ2F0aW9u' - 'QmFyEjQKBmRyYXdlchgTIAEoCzIcLmZsdXR0ZXJfc2R1aS5TZHVpV2lkZ2V0RGF0YVIGZHJhd2' - 'VyEjsKCmVuZF9kcmF3ZXIYFCABKAsyHC5mbHV0dGVyX3NkdWkuU2R1aVdpZGdldERhdGFSCWVu' - 'ZERyYXdlchI/Cgxib3R0b21fc2hlZXQYFSABKAsyHC5mbHV0dGVyX3NkdWkuU2R1aVdpZGdldE' - 'RhdGFSC2JvdHRvbVNoZWV0Ej4KHHJlc2l6ZV90b19hdm9pZF9ib3R0b21faW5zZXQYFiABKAhS' - 'GHJlc2l6ZVRvQXZvaWRCb3R0b21JbnNldBIYCgdwcmltYXJ5GBcgASgIUgdwcmltYXJ5EnYKH2' - 'Zsb2F0aW5nX2FjdGlvbl9idXR0b25fbG9jYXRpb24YGCABKA4yLy5mbHV0dGVyX3NkdWkuRmxv' - 'YXRpbmdBY3Rpb25CdXR0b25Mb2NhdGlvblByb3RvUhxmbG9hdGluZ0FjdGlvbkJ1dHRvbkxvY2' - 'F0aW9uEh8KC2V4dGVuZF9ib2R5GBkgASgIUgpleHRlbmRCb2R5EjoKGmV4dGVuZF9ib2R5X2Jl' - 'aGluZF9hcHBfYmFyGBogASgIUhZleHRlbmRCb2R5QmVoaW5kQXBwQmFyEkUKEmRyYXdlcl9zY3' - 'JpbV9jb2xvchgbIAEoCzIXLmZsdXR0ZXJfc2R1aS5Db2xvckRhdGFSEGRyYXdlclNjcmltQ29s' - 'b3ISMwoWZHJhd2VyX2VkZ2VfZHJhZ193aWR0aBgcIAEoAVITZHJhd2VyRWRnZURyYWdXaWR0aB' - 'JECh9kcmF3ZXJfZW5hYmxlX29wZW5fZHJhZ19nZXN0dXJlGB0gASgIUhtkcmF3ZXJFbmFibGVP' - 'cGVuRHJhZ0dlc3R1cmUSSwojZW5kX2RyYXdlcl9lbmFibGVfb3Blbl9kcmFnX2dlc3R1cmUYHi' - 'ABKAhSHmVuZERyYXdlckVuYWJsZU9wZW5EcmFnR2VzdHVyZRJUChNtYWluX2F4aXNfYWxpZ25t' - 'ZW50GB8gASgOMiQuZmx1dHRlcl9zZHVpLk1haW5BeGlzQWxpZ25tZW50UHJvdG9SEW1haW5BeG' - 'lzQWxpZ25tZW50ElcKFGNyb3NzX2F4aXNfYWxpZ25tZW50GCAgASgOMiUuZmx1dHRlcl9zZHVp' - 'LkNyb3NzQXhpc0FsaWdubWVudFByb3RvUhJjcm9zc0F4aXNBbGlnbm1lbnQSRQoObWFpbl9heG' - 'lzX3NpemUYISABKA4yHy5mbHV0dGVyX3NkdWkuTWFpbkF4aXNTaXplUHJvdG9SDG1haW5BeGlz' - 'U2l6ZRJHCg50ZXh0X2RpcmVjdGlvbhgiIAEoDjIgLmZsdXR0ZXJfc2R1aS5UZXh0RGlyZWN0aW' - '9uUHJvdG9SDXRleHREaXJlY3Rpb24SUwoSdmVydGljYWxfZGlyZWN0aW9uGCMgASgOMiQuZmx1' - 'dHRlcl9zZHVpLlZlcnRpY2FsRGlyZWN0aW9uUHJvdG9SEXZlcnRpY2FsRGlyZWN0aW9uEkQKDX' - 'RleHRfYmFzZWxpbmUYJCABKA4yHy5mbHV0dGVyX3NkdWkuVGV4dEJhc2VsaW5lUHJvdG9SDHRl' - 'eHRCYXNlbGluZRI5CglhbGlnbm1lbnQYJSABKAsyGy5mbHV0dGVyX3NkdWkuQWxpZ25tZW50RG' - 'F0YVIJYWxpZ25tZW50EkIKC2NvbnN0cmFpbnRzGCYgASgLMiAuZmx1dHRlcl9zZHVpLkJveENv' - 'bnN0cmFpbnRzRGF0YVILY29uc3RyYWludHMSOQoJdHJhbnNmb3JtGCcgASgLMhsuZmx1dHRlcl' - '9zZHVpLlRyYW5zZm9ybURhdGFSCXRyYW5zZm9ybRJMChN0cmFuc2Zvcm1fYWxpZ25tZW50GCgg' - 'ASgLMhsuZmx1dHRlcl9zZHVpLkFsaWdubWVudERhdGFSEnRyYW5zZm9ybUFsaWdubWVudBI8Cg' - '1jbGlwX2JlaGF2aW9yGCkgASgOMhcuZmx1dHRlcl9zZHVpLkNsaXBQcm90b1IMY2xpcEJlaGF2' - 'aW9yEjsKCnRleHRfYWxpZ24YKiABKA4yHC5mbHV0dGVyX3NkdWkuVGV4dEFsaWduUHJvdG9SCX' - 'RleHRBbGlnbhI7CghvdmVyZmxvdxgrIAEoDjIfLmZsdXR0ZXJfc2R1aS5UZXh0T3ZlcmZsb3dQ' - 'cm90b1IIb3ZlcmZsb3cSGwoJbWF4X2xpbmVzGCwgASgFUghtYXhMaW5lcxIbCglzb2Z0X3dyYX' - 'AYLSABKAhSCHNvZnRXcmFwEiUKDmxldHRlcl9zcGFjaW5nGC4gASgBUg1sZXR0ZXJTcGFjaW5n' - 'EiEKDHdvcmRfc3BhY2luZxgvIAEoAVILd29yZFNwYWNpbmcSFgoGaGVpZ2h0GDAgASgBUgZoZW' - 'lnaHQSHwoLZm9udF9mYW1pbHkYMSABKAlSCmZvbnRGYW1pbHkSNgoGcmVwZWF0GDIgASgOMh4u' - 'Zmx1dHRlcl9zZHVpLkltYWdlUmVwZWF0UHJvdG9SBnJlcGVhdBJGChBjb2xvcl9ibGVuZF9tb2' - 'RlGDMgASgOMhwuZmx1dHRlcl9zZHVpLkJsZW5kTW9kZVByb3RvUg5jb2xvckJsZW5kTW9kZRI5' - 'CgxjZW50ZXJfc2xpY2UYNCABKAsyFi5mbHV0dGVyX3NkdWkuUmVjdERhdGFSC2NlbnRlclNsaW' - 'NlEjAKFG1hdGNoX3RleHRfZGlyZWN0aW9uGDUgASgIUhJtYXRjaFRleHREaXJlY3Rpb24SKQoQ' - 'Z2FwbGVzc19wbGF5YmFjaxg2IAEoCFIPZ2FwbGVzc1BsYXliYWNrEkcKDmZpbHRlcl9xdWFsaX' - 'R5GDcgASgOMiAuZmx1dHRlcl9zZHVpLkZpbHRlclF1YWxpdHlQcm90b1INZmlsdGVyUXVhbGl0' - 'eRIfCgtjYWNoZV93aWR0aBg4IAEoBVIKY2FjaGVXaWR0aBIhCgxjYWNoZV9oZWlnaHQYOSABKA' - 'VSC2NhY2hlSGVpZ2h0EhQKBXNjYWxlGDogASgBUgVzY2FsZRIlCg5zZW1hbnRpY19sYWJlbBg7' - 'IAEoCVINc2VtYW50aWNMYWJlbBI/CgxlcnJvcl93aWRnZXQYPCABKAsyHC5mbHV0dGVyX3NkdW' - 'kuU2R1aVdpZGdldERhdGFSC2Vycm9yV2lkZ2V0EkMKDmxvYWRpbmdfd2lkZ2V0GD0gASgLMhwu' - 'Zmx1dHRlcl9zZHVpLlNkdWlXaWRnZXREYXRhUg1sb2FkaW5nV2lkZ2V0EhgKB29wYWNpdHkYPi' - 'ABKAFSB29wYWNpdHkSLAoSYXBwbHlfdGV4dF9zY2FsaW5nGD8gASgIUhBhcHBseVRleHRTY2Fs' - 'aW5nEjIKB3NoYWRvd3MYQCADKAsyGC5mbHV0dGVyX3NkdWkuU2hhZG93RGF0YVIHc2hhZG93cx' - 'pDChVTdHJpbmdBdHRyaWJ1dGVzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiAB' - 'KAlSBXZhbHVlOgI4ARpDChVEb3VibGVBdHRyaWJ1dGVzRW50cnkSEAoDa2V5GAEgASgJUgNrZX' - 'kSFAoFdmFsdWUYAiABKAFSBXZhbHVlOgI4ARpBChNCb29sQXR0cmlidXRlc0VudHJ5EhAKA2tl' - 'eRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgIUgV2YWx1ZToCOAEaQAoSSW50QXR0cmlidXRlc0' - 'VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgFUgV2YWx1ZToCOAE='); - -@$core.Deprecated('Use colorDataDescriptor instead') -const ColorData$json = { - '1': 'ColorData', - '2': [ - {'1': 'alpha', '3': 1, '4': 1, '5': 5, '10': 'alpha'}, - {'1': 'red', '3': 2, '4': 1, '5': 5, '10': 'red'}, - {'1': 'green', '3': 3, '4': 1, '5': 5, '10': 'green'}, - {'1': 'blue', '3': 4, '4': 1, '5': 5, '10': 'blue'}, - ], -}; - -/// Descriptor for `ColorData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List colorDataDescriptor = $convert.base64Decode( - 'CglDb2xvckRhdGESFAoFYWxwaGEYASABKAVSBWFscGhhEhAKA3JlZBgCIAEoBVIDcmVkEhQKBW' - 'dyZWVuGAMgASgFUgVncmVlbhISCgRibHVlGAQgASgFUgRibHVl'); - -@$core.Deprecated('Use edgeInsetsDataDescriptor instead') -const EdgeInsetsData$json = { - '1': 'EdgeInsetsData', - '2': [ - {'1': 'left', '3': 1, '4': 1, '5': 1, '9': 0, '10': 'left', '17': true}, - {'1': 'top', '3': 2, '4': 1, '5': 1, '9': 1, '10': 'top', '17': true}, - {'1': 'right', '3': 3, '4': 1, '5': 1, '9': 2, '10': 'right', '17': true}, - {'1': 'bottom', '3': 4, '4': 1, '5': 1, '9': 3, '10': 'bottom', '17': true}, - {'1': 'all', '3': 5, '4': 1, '5': 1, '9': 4, '10': 'all', '17': true}, - ], - '8': [ - {'1': '_left'}, - {'1': '_top'}, - {'1': '_right'}, - {'1': '_bottom'}, - {'1': '_all'}, - ], -}; - -/// Descriptor for `EdgeInsetsData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List edgeInsetsDataDescriptor = $convert.base64Decode( - 'Cg5FZGdlSW5zZXRzRGF0YRIXCgRsZWZ0GAEgASgBSABSBGxlZnSIAQESFQoDdG9wGAIgASgBSA' - 'FSA3RvcIgBARIZCgVyaWdodBgDIAEoAUgCUgVyaWdodIgBARIbCgZib3R0b20YBCABKAFIA1IG' - 'Ym90dG9tiAEBEhUKA2FsbBgFIAEoAUgEUgNhbGyIAQFCBwoFX2xlZnRCBgoEX3RvcEIICgZfcm' - 'lnaHRCCQoHX2JvdHRvbUIGCgRfYWxs'); - -@$core.Deprecated('Use textStyleDataDescriptor instead') -const TextStyleData$json = { - '1': 'TextStyleData', - '2': [ - { - '1': 'color', - '3': 1, - '4': 1, - '5': 11, - '6': '.flutter_sdui.ColorData', - '9': 0, - '10': 'color', - '17': true - }, - { - '1': 'font_size', - '3': 2, - '4': 1, - '5': 1, - '9': 1, - '10': 'fontSize', - '17': true - }, - { - '1': 'font_weight', - '3': 3, - '4': 1, - '5': 9, - '9': 2, - '10': 'fontWeight', - '17': true - }, - { - '1': 'decoration', - '3': 4, - '4': 1, - '5': 14, - '6': '.flutter_sdui.TextDecorationProto', - '9': 3, - '10': 'decoration', - '17': true - }, - { - '1': 'letter_spacing', - '3': 5, - '4': 1, - '5': 1, - '9': 4, - '10': 'letterSpacing', - '17': true - }, - { - '1': 'word_spacing', - '3': 6, - '4': 1, - '5': 1, - '9': 5, - '10': 'wordSpacing', - '17': true - }, - {'1': 'height', '3': 7, '4': 1, '5': 1, '9': 6, '10': 'height', '17': true}, - { - '1': 'font_family', - '3': 8, - '4': 1, - '5': 9, - '9': 7, - '10': 'fontFamily', - '17': true - }, - { - '1': 'font_style', - '3': 9, - '4': 1, - '5': 14, - '6': '.flutter_sdui.FontStyleProto', - '9': 8, - '10': 'fontStyle', - '17': true - }, - ], - '8': [ - {'1': '_color'}, - {'1': '_font_size'}, - {'1': '_font_weight'}, - {'1': '_decoration'}, - {'1': '_letter_spacing'}, - {'1': '_word_spacing'}, - {'1': '_height'}, - {'1': '_font_family'}, - {'1': '_font_style'}, - ], -}; - -/// Descriptor for `TextStyleData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List textStyleDataDescriptor = $convert.base64Decode( - 'Cg1UZXh0U3R5bGVEYXRhEjIKBWNvbG9yGAEgASgLMhcuZmx1dHRlcl9zZHVpLkNvbG9yRGF0YU' - 'gAUgVjb2xvcogBARIgCglmb250X3NpemUYAiABKAFIAVIIZm9udFNpemWIAQESJAoLZm9udF93' - 'ZWlnaHQYAyABKAlIAlIKZm9udFdlaWdodIgBARJGCgpkZWNvcmF0aW9uGAQgASgOMiEuZmx1dH' - 'Rlcl9zZHVpLlRleHREZWNvcmF0aW9uUHJvdG9IA1IKZGVjb3JhdGlvbogBARIqCg5sZXR0ZXJf' - 'c3BhY2luZxgFIAEoAUgEUg1sZXR0ZXJTcGFjaW5niAEBEiYKDHdvcmRfc3BhY2luZxgGIAEoAU' - 'gFUgt3b3JkU3BhY2luZ4gBARIbCgZoZWlnaHQYByABKAFIBlIGaGVpZ2h0iAEBEiQKC2ZvbnRf' - 'ZmFtaWx5GAggASgJSAdSCmZvbnRGYW1pbHmIAQESQAoKZm9udF9zdHlsZRgJIAEoDjIcLmZsdX' - 'R0ZXJfc2R1aS5Gb250U3R5bGVQcm90b0gIUglmb250U3R5bGWIAQFCCAoGX2NvbG9yQgwKCl9m' - 'b250X3NpemVCDgoMX2ZvbnRfd2VpZ2h0Qg0KC19kZWNvcmF0aW9uQhEKD19sZXR0ZXJfc3BhY2' - 'luZ0IPCg1fd29yZF9zcGFjaW5nQgkKB19oZWlnaHRCDgoMX2ZvbnRfZmFtaWx5Qg0KC19mb250' - 'X3N0eWxl'); - -@$core.Deprecated('Use iconDataMessageDescriptor instead') -const IconDataMessage$json = { - '1': 'IconDataMessage', - '2': [ - {'1': 'name', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'name', '17': true}, - { - '1': 'code_point', - '3': 2, - '4': 1, - '5': 5, - '9': 1, - '10': 'codePoint', - '17': true - }, - { - '1': 'font_family', - '3': 3, - '4': 1, - '5': 9, - '9': 2, - '10': 'fontFamily', - '17': true - }, - { - '1': 'color', - '3': 4, - '4': 1, - '5': 11, - '6': '.flutter_sdui.ColorData', - '9': 3, - '10': 'color', - '17': true - }, - {'1': 'size', '3': 5, '4': 1, '5': 1, '9': 4, '10': 'size', '17': true}, - ], - '8': [ - {'1': '_name'}, - {'1': '_code_point'}, - {'1': '_font_family'}, - {'1': '_color'}, - {'1': '_size'}, - ], -}; - -/// Descriptor for `IconDataMessage`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List iconDataMessageDescriptor = $convert.base64Decode( - 'Cg9JY29uRGF0YU1lc3NhZ2USFwoEbmFtZRgBIAEoCUgAUgRuYW1liAEBEiIKCmNvZGVfcG9pbn' - 'QYAiABKAVIAVIJY29kZVBvaW50iAEBEiQKC2ZvbnRfZmFtaWx5GAMgASgJSAJSCmZvbnRGYW1p' - 'bHmIAQESMgoFY29sb3IYBCABKAsyFy5mbHV0dGVyX3NkdWkuQ29sb3JEYXRhSANSBWNvbG9yiA' - 'EBEhcKBHNpemUYBSABKAFIBFIEc2l6ZYgBAUIHCgVfbmFtZUINCgtfY29kZV9wb2ludEIOCgxf' - 'Zm9udF9mYW1pbHlCCAoGX2NvbG9yQgcKBV9zaXpl'); - -@$core.Deprecated('Use boxDecorationDataDescriptor instead') -const BoxDecorationData$json = { - '1': 'BoxDecorationData', - '2': [ - { - '1': 'color', - '3': 1, - '4': 1, - '5': 11, - '6': '.flutter_sdui.ColorData', - '9': 0, - '10': 'color', - '17': true - }, - { - '1': 'border_radius', - '3': 2, - '4': 1, - '5': 11, - '6': '.flutter_sdui.BorderRadiusData', - '9': 1, - '10': 'borderRadius', - '17': true - }, - { - '1': 'border', - '3': 3, - '4': 1, - '5': 11, - '6': '.flutter_sdui.BorderData', - '9': 2, - '10': 'border', - '17': true - }, - { - '1': 'box_shadow', - '3': 4, - '4': 3, - '5': 11, - '6': '.flutter_sdui.BoxShadowData', - '10': 'boxShadow' - }, - { - '1': 'gradient', - '3': 5, - '4': 1, - '5': 11, - '6': '.flutter_sdui.GradientData', - '9': 3, - '10': 'gradient', - '17': true - }, - { - '1': 'shape', - '3': 6, - '4': 1, - '5': 14, - '6': '.flutter_sdui.BoxShapeProto', - '9': 4, - '10': 'shape', - '17': true - }, - { - '1': 'image', - '3': 7, - '4': 1, - '5': 11, - '6': '.flutter_sdui.DecorationImageData', - '9': 5, - '10': 'image', - '17': true - }, - ], - '8': [ - {'1': '_color'}, - {'1': '_border_radius'}, - {'1': '_border'}, - {'1': '_gradient'}, - {'1': '_shape'}, - {'1': '_image'}, - ], -}; - -/// Descriptor for `BoxDecorationData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List boxDecorationDataDescriptor = $convert.base64Decode( - 'ChFCb3hEZWNvcmF0aW9uRGF0YRIyCgVjb2xvchgBIAEoCzIXLmZsdXR0ZXJfc2R1aS5Db2xvck' - 'RhdGFIAFIFY29sb3KIAQESSAoNYm9yZGVyX3JhZGl1cxgCIAEoCzIeLmZsdXR0ZXJfc2R1aS5C' - 'b3JkZXJSYWRpdXNEYXRhSAFSDGJvcmRlclJhZGl1c4gBARI1CgZib3JkZXIYAyABKAsyGC5mbH' - 'V0dGVyX3NkdWkuQm9yZGVyRGF0YUgCUgZib3JkZXKIAQESOgoKYm94X3NoYWRvdxgEIAMoCzIb' - 'LmZsdXR0ZXJfc2R1aS5Cb3hTaGFkb3dEYXRhUglib3hTaGFkb3cSOwoIZ3JhZGllbnQYBSABKA' - 'syGi5mbHV0dGVyX3NkdWkuR3JhZGllbnREYXRhSANSCGdyYWRpZW50iAEBEjYKBXNoYXBlGAYg' - 'ASgOMhsuZmx1dHRlcl9zZHVpLkJveFNoYXBlUHJvdG9IBFIFc2hhcGWIAQESPAoFaW1hZ2UYBy' - 'ABKAsyIS5mbHV0dGVyX3NkdWkuRGVjb3JhdGlvbkltYWdlRGF0YUgFUgVpbWFnZYgBAUIICgZf' - 'Y29sb3JCEAoOX2JvcmRlcl9yYWRpdXNCCQoHX2JvcmRlckILCglfZ3JhZGllbnRCCAoGX3NoYX' - 'BlQggKBl9pbWFnZQ=='); - -@$core.Deprecated('Use borderRadiusDataDescriptor instead') -const BorderRadiusData$json = { - '1': 'BorderRadiusData', - '2': [ - {'1': 'all', '3': 1, '4': 1, '5': 1, '9': 0, '10': 'all', '17': true}, - { - '1': 'top_left', - '3': 2, - '4': 1, - '5': 1, - '9': 1, - '10': 'topLeft', - '17': true - }, - { - '1': 'top_right', - '3': 3, - '4': 1, - '5': 1, - '9': 2, - '10': 'topRight', - '17': true - }, - { - '1': 'bottom_left', - '3': 4, - '4': 1, - '5': 1, - '9': 3, - '10': 'bottomLeft', - '17': true - }, - { - '1': 'bottom_right', - '3': 5, - '4': 1, - '5': 1, - '9': 4, - '10': 'bottomRight', - '17': true - }, - ], - '8': [ - {'1': '_all'}, - {'1': '_top_left'}, - {'1': '_top_right'}, - {'1': '_bottom_left'}, - {'1': '_bottom_right'}, - ], -}; - -/// Descriptor for `BorderRadiusData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List borderRadiusDataDescriptor = $convert.base64Decode( - 'ChBCb3JkZXJSYWRpdXNEYXRhEhUKA2FsbBgBIAEoAUgAUgNhbGyIAQESHgoIdG9wX2xlZnQYAi' - 'ABKAFIAVIHdG9wTGVmdIgBARIgCgl0b3BfcmlnaHQYAyABKAFIAlIIdG9wUmlnaHSIAQESJAoL' - 'Ym90dG9tX2xlZnQYBCABKAFIA1IKYm90dG9tTGVmdIgBARImCgxib3R0b21fcmlnaHQYBSABKA' - 'FIBFILYm90dG9tUmlnaHSIAQFCBgoEX2FsbEILCglfdG9wX2xlZnRCDAoKX3RvcF9yaWdodEIO' - 'CgxfYm90dG9tX2xlZnRCDwoNX2JvdHRvbV9yaWdodA=='); - -@$core.Deprecated('Use borderSideDataDescriptor instead') -const BorderSideData$json = { - '1': 'BorderSideData', - '2': [ - { - '1': 'color', - '3': 1, - '4': 1, - '5': 11, - '6': '.flutter_sdui.ColorData', - '9': 0, - '10': 'color', - '17': true - }, - {'1': 'width', '3': 2, '4': 1, '5': 1, '9': 1, '10': 'width', '17': true}, - { - '1': 'style', - '3': 3, - '4': 1, - '5': 14, - '6': '.flutter_sdui.BorderStyleProto', - '9': 2, - '10': 'style', - '17': true - }, - ], - '8': [ - {'1': '_color'}, - {'1': '_width'}, - {'1': '_style'}, - ], -}; - -/// Descriptor for `BorderSideData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List borderSideDataDescriptor = $convert.base64Decode( - 'Cg5Cb3JkZXJTaWRlRGF0YRIyCgVjb2xvchgBIAEoCzIXLmZsdXR0ZXJfc2R1aS5Db2xvckRhdG' - 'FIAFIFY29sb3KIAQESGQoFd2lkdGgYAiABKAFIAVIFd2lkdGiIAQESOQoFc3R5bGUYAyABKA4y' - 'Hi5mbHV0dGVyX3NkdWkuQm9yZGVyU3R5bGVQcm90b0gCUgVzdHlsZYgBAUIICgZfY29sb3JCCA' - 'oGX3dpZHRoQggKBl9zdHlsZQ=='); - -@$core.Deprecated('Use borderDataDescriptor instead') -const BorderData$json = { - '1': 'BorderData', - '2': [ - { - '1': 'top', - '3': 1, - '4': 1, - '5': 11, - '6': '.flutter_sdui.BorderSideData', - '9': 0, - '10': 'top', - '17': true - }, - { - '1': 'right', - '3': 2, - '4': 1, - '5': 11, - '6': '.flutter_sdui.BorderSideData', - '9': 1, - '10': 'right', - '17': true - }, - { - '1': 'bottom', - '3': 3, - '4': 1, - '5': 11, - '6': '.flutter_sdui.BorderSideData', - '9': 2, - '10': 'bottom', - '17': true - }, - { - '1': 'left', - '3': 4, - '4': 1, - '5': 11, - '6': '.flutter_sdui.BorderSideData', - '9': 3, - '10': 'left', - '17': true - }, - { - '1': 'all', - '3': 5, - '4': 1, - '5': 11, - '6': '.flutter_sdui.BorderSideData', - '9': 4, - '10': 'all', - '17': true - }, - ], - '8': [ - {'1': '_top'}, - {'1': '_right'}, - {'1': '_bottom'}, - {'1': '_left'}, - {'1': '_all'}, - ], -}; - -/// Descriptor for `BorderData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List borderDataDescriptor = $convert.base64Decode( - 'CgpCb3JkZXJEYXRhEjMKA3RvcBgBIAEoCzIcLmZsdXR0ZXJfc2R1aS5Cb3JkZXJTaWRlRGF0YU' - 'gAUgN0b3CIAQESNwoFcmlnaHQYAiABKAsyHC5mbHV0dGVyX3NkdWkuQm9yZGVyU2lkZURhdGFI' - 'AVIFcmlnaHSIAQESOQoGYm90dG9tGAMgASgLMhwuZmx1dHRlcl9zZHVpLkJvcmRlclNpZGVEYX' - 'RhSAJSBmJvdHRvbYgBARI1CgRsZWZ0GAQgASgLMhwuZmx1dHRlcl9zZHVpLkJvcmRlclNpZGVE' - 'YXRhSANSBGxlZnSIAQESMwoDYWxsGAUgASgLMhwuZmx1dHRlcl9zZHVpLkJvcmRlclNpZGVEYX' - 'RhSARSA2FsbIgBAUIGCgRfdG9wQggKBl9yaWdodEIJCgdfYm90dG9tQgcKBV9sZWZ0QgYKBF9h' - 'bGw='); - -@$core.Deprecated('Use boxShadowDataDescriptor instead') -const BoxShadowData$json = { - '1': 'BoxShadowData', - '2': [ - { - '1': 'color', - '3': 1, - '4': 1, - '5': 11, - '6': '.flutter_sdui.ColorData', - '9': 0, - '10': 'color', - '17': true - }, - { - '1': 'offset_x', - '3': 2, - '4': 1, - '5': 1, - '9': 1, - '10': 'offsetX', - '17': true - }, - { - '1': 'offset_y', - '3': 3, - '4': 1, - '5': 1, - '9': 2, - '10': 'offsetY', - '17': true - }, - { - '1': 'blur_radius', - '3': 4, - '4': 1, - '5': 1, - '9': 3, - '10': 'blurRadius', - '17': true - }, - { - '1': 'spread_radius', - '3': 5, - '4': 1, - '5': 1, - '9': 4, - '10': 'spreadRadius', - '17': true - }, - ], - '8': [ - {'1': '_color'}, - {'1': '_offset_x'}, - {'1': '_offset_y'}, - {'1': '_blur_radius'}, - {'1': '_spread_radius'}, - ], -}; - -/// Descriptor for `BoxShadowData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List boxShadowDataDescriptor = $convert.base64Decode( - 'Cg1Cb3hTaGFkb3dEYXRhEjIKBWNvbG9yGAEgASgLMhcuZmx1dHRlcl9zZHVpLkNvbG9yRGF0YU' - 'gAUgVjb2xvcogBARIeCghvZmZzZXRfeBgCIAEoAUgBUgdvZmZzZXRYiAEBEh4KCG9mZnNldF95' - 'GAMgASgBSAJSB29mZnNldFmIAQESJAoLYmx1cl9yYWRpdXMYBCABKAFIA1IKYmx1clJhZGl1c4' - 'gBARIoCg1zcHJlYWRfcmFkaXVzGAUgASgBSARSDHNwcmVhZFJhZGl1c4gBAUIICgZfY29sb3JC' - 'CwoJX29mZnNldF94QgsKCV9vZmZzZXRfeUIOCgxfYmx1cl9yYWRpdXNCEAoOX3NwcmVhZF9yYW' - 'RpdXM='); - -@$core.Deprecated('Use gradientDataDescriptor instead') -const GradientData$json = { - '1': 'GradientData', - '2': [ - { - '1': 'type', - '3': 1, - '4': 1, - '5': 14, - '6': '.flutter_sdui.GradientData.GradientType', - '10': 'type' - }, - { - '1': 'colors', - '3': 2, - '4': 3, - '5': 11, - '6': '.flutter_sdui.ColorData', - '10': 'colors' - }, - {'1': 'stops', '3': 3, '4': 3, '5': 1, '10': 'stops'}, - { - '1': 'begin', - '3': 4, - '4': 1, - '5': 11, - '6': '.flutter_sdui.AlignmentData', - '9': 0, - '10': 'begin', - '17': true - }, - { - '1': 'end', - '3': 5, - '4': 1, - '5': 11, - '6': '.flutter_sdui.AlignmentData', - '9': 1, - '10': 'end', - '17': true - }, - { - '1': 'center', - '3': 6, - '4': 1, - '5': 11, - '6': '.flutter_sdui.AlignmentData', - '9': 2, - '10': 'center', - '17': true - }, - {'1': 'radius', '3': 7, '4': 1, '5': 1, '9': 3, '10': 'radius', '17': true}, - { - '1': 'start_angle', - '3': 8, - '4': 1, - '5': 1, - '9': 4, - '10': 'startAngle', - '17': true - }, - { - '1': 'end_angle', - '3': 9, - '4': 1, - '5': 1, - '9': 5, - '10': 'endAngle', - '17': true - }, - ], - '4': [GradientData_GradientType$json], - '8': [ - {'1': '_begin'}, - {'1': '_end'}, - {'1': '_center'}, - {'1': '_radius'}, - {'1': '_start_angle'}, - {'1': '_end_angle'}, - ], -}; - -@$core.Deprecated('Use gradientDataDescriptor instead') -const GradientData_GradientType$json = { - '1': 'GradientType', - '2': [ - {'1': 'GRADIENT_TYPE_UNSPECIFIED', '2': 0}, - {'1': 'LINEAR', '2': 1}, - {'1': 'RADIAL', '2': 2}, - {'1': 'SWEEP', '2': 3}, - ], -}; - -/// Descriptor for `GradientData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List gradientDataDescriptor = $convert.base64Decode( - 'CgxHcmFkaWVudERhdGESOwoEdHlwZRgBIAEoDjInLmZsdXR0ZXJfc2R1aS5HcmFkaWVudERhdG' - 'EuR3JhZGllbnRUeXBlUgR0eXBlEi8KBmNvbG9ycxgCIAMoCzIXLmZsdXR0ZXJfc2R1aS5Db2xv' - 'ckRhdGFSBmNvbG9ycxIUCgVzdG9wcxgDIAMoAVIFc3RvcHMSNgoFYmVnaW4YBCABKAsyGy5mbH' - 'V0dGVyX3NkdWkuQWxpZ25tZW50RGF0YUgAUgViZWdpbogBARIyCgNlbmQYBSABKAsyGy5mbHV0' - 'dGVyX3NkdWkuQWxpZ25tZW50RGF0YUgBUgNlbmSIAQESOAoGY2VudGVyGAYgASgLMhsuZmx1dH' - 'Rlcl9zZHVpLkFsaWdubWVudERhdGFIAlIGY2VudGVyiAEBEhsKBnJhZGl1cxgHIAEoAUgDUgZy' - 'YWRpdXOIAQESJAoLc3RhcnRfYW5nbGUYCCABKAFIBFIKc3RhcnRBbmdsZYgBARIgCgllbmRfYW' - '5nbGUYCSABKAFIBVIIZW5kQW5nbGWIAQEiUAoMR3JhZGllbnRUeXBlEh0KGUdSQURJRU5UX1RZ' - 'UEVfVU5TUEVDSUZJRUQQABIKCgZMSU5FQVIQARIKCgZSQURJQUwQAhIJCgVTV0VFUBADQggKBl' - '9iZWdpbkIGCgRfZW5kQgkKB19jZW50ZXJCCQoHX3JhZGl1c0IOCgxfc3RhcnRfYW5nbGVCDAoK' - 'X2VuZF9hbmdsZQ=='); - -@$core.Deprecated('Use alignmentDataDescriptor instead') -const AlignmentData$json = { - '1': 'AlignmentData', - '2': [ - { - '1': 'predefined', - '3': 1, - '4': 1, - '5': 14, - '6': '.flutter_sdui.AlignmentData.PredefinedAlignment', - '9': 0, - '10': 'predefined' - }, - { - '1': 'xy', - '3': 2, - '4': 1, - '5': 11, - '6': '.flutter_sdui.XYAlignment', - '9': 0, - '10': 'xy' - }, - ], - '4': [AlignmentData_PredefinedAlignment$json], - '8': [ - {'1': 'alignment_type'}, - ], -}; - -@$core.Deprecated('Use alignmentDataDescriptor instead') -const AlignmentData_PredefinedAlignment$json = { - '1': 'PredefinedAlignment', - '2': [ - {'1': 'PREDEFINED_ALIGNMENT_UNSPECIFIED', '2': 0}, - {'1': 'BOTTOM_CENTER', '2': 1}, - {'1': 'BOTTOM_LEFT', '2': 2}, - {'1': 'BOTTOM_RIGHT', '2': 3}, - {'1': 'CENTER_ALIGN', '2': 4}, - {'1': 'CENTER_LEFT', '2': 5}, - {'1': 'CENTER_RIGHT', '2': 6}, - {'1': 'TOP_CENTER', '2': 7}, - {'1': 'TOP_LEFT', '2': 8}, - {'1': 'TOP_RIGHT', '2': 9}, - ], -}; - -/// Descriptor for `AlignmentData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List alignmentDataDescriptor = $convert.base64Decode( - 'Cg1BbGlnbm1lbnREYXRhElEKCnByZWRlZmluZWQYASABKA4yLy5mbHV0dGVyX3NkdWkuQWxpZ2' - '5tZW50RGF0YS5QcmVkZWZpbmVkQWxpZ25tZW50SABSCnByZWRlZmluZWQSKwoCeHkYAiABKAsy' - 'GS5mbHV0dGVyX3NkdWkuWFlBbGlnbm1lbnRIAFICeHki0wEKE1ByZWRlZmluZWRBbGlnbm1lbn' - 'QSJAogUFJFREVGSU5FRF9BTElHTk1FTlRfVU5TUEVDSUZJRUQQABIRCg1CT1RUT01fQ0VOVEVS' - 'EAESDwoLQk9UVE9NX0xFRlQQAhIQCgxCT1RUT01fUklHSFQQAxIQCgxDRU5URVJfQUxJR04QBB' - 'IPCgtDRU5URVJfTEVGVBAFEhAKDENFTlRFUl9SSUdIVBAGEg4KClRPUF9DRU5URVIQBxIMCghU' - 'T1BfTEVGVBAIEg0KCVRPUF9SSUdIVBAJQhAKDmFsaWdubWVudF90eXBl'); - -@$core.Deprecated('Use xYAlignmentDescriptor instead') -const XYAlignment$json = { - '1': 'XYAlignment', - '2': [ - {'1': 'x', '3': 1, '4': 1, '5': 1, '10': 'x'}, - {'1': 'y', '3': 2, '4': 1, '5': 1, '10': 'y'}, - ], -}; - -/// Descriptor for `XYAlignment`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List xYAlignmentDescriptor = $convert - .base64Decode('CgtYWUFsaWdubWVudBIMCgF4GAEgASgBUgF4EgwKAXkYAiABKAFSAXk='); - -@$core.Deprecated('Use decorationImageDataDescriptor instead') -const DecorationImageData$json = { - '1': 'DecorationImageData', - '2': [ - {'1': 'src', '3': 1, '4': 1, '5': 9, '10': 'src'}, - { - '1': 'fit', - '3': 2, - '4': 1, - '5': 14, - '6': '.flutter_sdui.BoxFitProto', - '9': 0, - '10': 'fit', - '17': true - }, - { - '1': 'alignment', - '3': 3, - '4': 1, - '5': 11, - '6': '.flutter_sdui.AlignmentData', - '9': 1, - '10': 'alignment', - '17': true - }, - { - '1': 'repeat', - '3': 4, - '4': 1, - '5': 14, - '6': '.flutter_sdui.ImageRepeatProto', - '9': 2, - '10': 'repeat', - '17': true - }, - { - '1': 'match_text_direction', - '3': 5, - '4': 1, - '5': 8, - '9': 3, - '10': 'matchTextDirection', - '17': true - }, - {'1': 'scale', '3': 6, '4': 1, '5': 1, '9': 4, '10': 'scale', '17': true}, - { - '1': 'opacity', - '3': 7, - '4': 1, - '5': 1, - '9': 5, - '10': 'opacity', - '17': true - }, - { - '1': 'filter_quality', - '3': 8, - '4': 1, - '5': 14, - '6': '.flutter_sdui.FilterQualityProto', - '9': 6, - '10': 'filterQuality', - '17': true - }, - { - '1': 'invert_colors', - '3': 9, - '4': 1, - '5': 8, - '9': 7, - '10': 'invertColors', - '17': true - }, - { - '1': 'is_anti_alias', - '3': 10, - '4': 1, - '5': 8, - '9': 8, - '10': 'isAntiAlias', - '17': true - }, - ], - '8': [ - {'1': '_fit'}, - {'1': '_alignment'}, - {'1': '_repeat'}, - {'1': '_match_text_direction'}, - {'1': '_scale'}, - {'1': '_opacity'}, - {'1': '_filter_quality'}, - {'1': '_invert_colors'}, - {'1': '_is_anti_alias'}, - ], -}; - -/// Descriptor for `DecorationImageData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List decorationImageDataDescriptor = $convert.base64Decode( - 'ChNEZWNvcmF0aW9uSW1hZ2VEYXRhEhAKA3NyYxgBIAEoCVIDc3JjEjAKA2ZpdBgCIAEoDjIZLm' - 'ZsdXR0ZXJfc2R1aS5Cb3hGaXRQcm90b0gAUgNmaXSIAQESPgoJYWxpZ25tZW50GAMgASgLMhsu' - 'Zmx1dHRlcl9zZHVpLkFsaWdubWVudERhdGFIAVIJYWxpZ25tZW50iAEBEjsKBnJlcGVhdBgEIA' - 'EoDjIeLmZsdXR0ZXJfc2R1aS5JbWFnZVJlcGVhdFByb3RvSAJSBnJlcGVhdIgBARI1ChRtYXRj' - 'aF90ZXh0X2RpcmVjdGlvbhgFIAEoCEgDUhJtYXRjaFRleHREaXJlY3Rpb26IAQESGQoFc2NhbG' - 'UYBiABKAFIBFIFc2NhbGWIAQESHQoHb3BhY2l0eRgHIAEoAUgFUgdvcGFjaXR5iAEBEkwKDmZp' - 'bHRlcl9xdWFsaXR5GAggASgOMiAuZmx1dHRlcl9zZHVpLkZpbHRlclF1YWxpdHlQcm90b0gGUg' - '1maWx0ZXJRdWFsaXR5iAEBEigKDWludmVydF9jb2xvcnMYCSABKAhIB1IMaW52ZXJ0Q29sb3Jz' - 'iAEBEicKDWlzX2FudGlfYWxpYXMYCiABKAhICFILaXNBbnRpQWxpYXOIAQFCBgoEX2ZpdEIMCg' - 'pfYWxpZ25tZW50QgkKB19yZXBlYXRCFwoVX21hdGNoX3RleHRfZGlyZWN0aW9uQggKBl9zY2Fs' - 'ZUIKCghfb3BhY2l0eUIRCg9fZmlsdGVyX3F1YWxpdHlCEAoOX2ludmVydF9jb2xvcnNCEAoOX2' - 'lzX2FudGlfYWxpYXM='); - -@$core.Deprecated('Use boxConstraintsDataDescriptor instead') -const BoxConstraintsData$json = { - '1': 'BoxConstraintsData', - '2': [ - { - '1': 'min_width', - '3': 1, - '4': 1, - '5': 1, - '9': 0, - '10': 'minWidth', - '17': true - }, - { - '1': 'max_width', - '3': 2, - '4': 1, - '5': 1, - '9': 1, - '10': 'maxWidth', - '17': true - }, - { - '1': 'min_height', - '3': 3, - '4': 1, - '5': 1, - '9': 2, - '10': 'minHeight', - '17': true - }, - { - '1': 'max_height', - '3': 4, - '4': 1, - '5': 1, - '9': 3, - '10': 'maxHeight', - '17': true - }, - ], - '8': [ - {'1': '_min_width'}, - {'1': '_max_width'}, - {'1': '_min_height'}, - {'1': '_max_height'}, - ], -}; - -/// Descriptor for `BoxConstraintsData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List boxConstraintsDataDescriptor = $convert.base64Decode( - 'ChJCb3hDb25zdHJhaW50c0RhdGESIAoJbWluX3dpZHRoGAEgASgBSABSCG1pbldpZHRoiAEBEi' - 'AKCW1heF93aWR0aBgCIAEoAUgBUghtYXhXaWR0aIgBARIiCgptaW5faGVpZ2h0GAMgASgBSAJS' - 'CW1pbkhlaWdodIgBARIiCgptYXhfaGVpZ2h0GAQgASgBSANSCW1heEhlaWdodIgBAUIMCgpfbW' - 'luX3dpZHRoQgwKCl9tYXhfd2lkdGhCDQoLX21pbl9oZWlnaHRCDQoLX21heF9oZWlnaHQ='); - -@$core.Deprecated('Use transformDataDescriptor instead') -const TransformData$json = { - '1': 'TransformData', - '2': [ - { - '1': 'type', - '3': 1, - '4': 1, - '5': 14, - '6': '.flutter_sdui.TransformData.TransformType', - '10': 'type' - }, - {'1': 'matrix_values', '3': 2, '4': 3, '5': 1, '10': 'matrixValues'}, - { - '1': 'translate_x', - '3': 3, - '4': 1, - '5': 1, - '9': 0, - '10': 'translateX', - '17': true - }, - { - '1': 'translate_y', - '3': 4, - '4': 1, - '5': 1, - '9': 1, - '10': 'translateY', - '17': true - }, - { - '1': 'translate_z', - '3': 5, - '4': 1, - '5': 1, - '9': 2, - '10': 'translateZ', - '17': true - }, - { - '1': 'rotation_angle', - '3': 6, - '4': 1, - '5': 1, - '9': 3, - '10': 'rotationAngle', - '17': true - }, - { - '1': 'rotation_x', - '3': 7, - '4': 1, - '5': 1, - '9': 4, - '10': 'rotationX', - '17': true - }, - { - '1': 'rotation_y', - '3': 8, - '4': 1, - '5': 1, - '9': 5, - '10': 'rotationY', - '17': true - }, - { - '1': 'rotation_z', - '3': 9, - '4': 1, - '5': 1, - '9': 6, - '10': 'rotationZ', - '17': true - }, - { - '1': 'scale_x', - '3': 10, - '4': 1, - '5': 1, - '9': 7, - '10': 'scaleX', - '17': true - }, - { - '1': 'scale_y', - '3': 11, - '4': 1, - '5': 1, - '9': 8, - '10': 'scaleY', - '17': true - }, - { - '1': 'scale_z', - '3': 12, - '4': 1, - '5': 1, - '9': 9, - '10': 'scaleZ', - '17': true - }, - ], - '4': [TransformData_TransformType$json], - '8': [ - {'1': '_translate_x'}, - {'1': '_translate_y'}, - {'1': '_translate_z'}, - {'1': '_rotation_angle'}, - {'1': '_rotation_x'}, - {'1': '_rotation_y'}, - {'1': '_rotation_z'}, - {'1': '_scale_x'}, - {'1': '_scale_y'}, - {'1': '_scale_z'}, - ], -}; - -@$core.Deprecated('Use transformDataDescriptor instead') -const TransformData_TransformType$json = { - '1': 'TransformType', - '2': [ - {'1': 'TRANSFORM_TYPE_UNSPECIFIED', '2': 0}, - {'1': 'MATRIX_4X4', '2': 1}, - {'1': 'TRANSLATE', '2': 2}, - {'1': 'ROTATE', '2': 3}, - {'1': 'SCALE', '2': 4}, - ], -}; - -/// Descriptor for `TransformData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List transformDataDescriptor = $convert.base64Decode( - 'Cg1UcmFuc2Zvcm1EYXRhEj0KBHR5cGUYASABKA4yKS5mbHV0dGVyX3NkdWkuVHJhbnNmb3JtRG' - 'F0YS5UcmFuc2Zvcm1UeXBlUgR0eXBlEiMKDW1hdHJpeF92YWx1ZXMYAiADKAFSDG1hdHJpeFZh' - 'bHVlcxIkCgt0cmFuc2xhdGVfeBgDIAEoAUgAUgp0cmFuc2xhdGVYiAEBEiQKC3RyYW5zbGF0ZV' - '95GAQgASgBSAFSCnRyYW5zbGF0ZVmIAQESJAoLdHJhbnNsYXRlX3oYBSABKAFIAlIKdHJhbnNs' - 'YXRlWogBARIqCg5yb3RhdGlvbl9hbmdsZRgGIAEoAUgDUg1yb3RhdGlvbkFuZ2xliAEBEiIKCn' - 'JvdGF0aW9uX3gYByABKAFIBFIJcm90YXRpb25YiAEBEiIKCnJvdGF0aW9uX3kYCCABKAFIBVIJ' - 'cm90YXRpb25ZiAEBEiIKCnJvdGF0aW9uX3oYCSABKAFIBlIJcm90YXRpb25aiAEBEhwKB3NjYW' - 'xlX3gYCiABKAFIB1IGc2NhbGVYiAEBEhwKB3NjYWxlX3kYCyABKAFICFIGc2NhbGVZiAEBEhwK' - 'B3NjYWxlX3oYDCABKAFICVIGc2NhbGVaiAEBImUKDVRyYW5zZm9ybVR5cGUSHgoaVFJBTlNGT1' - 'JNX1RZUEVfVU5TUEVDSUZJRUQQABIOCgpNQVRSSVhfNFg0EAESDQoJVFJBTlNMQVRFEAISCgoG' - 'Uk9UQVRFEAMSCQoFU0NBTEUQBEIOCgxfdHJhbnNsYXRlX3hCDgoMX3RyYW5zbGF0ZV95Qg4KDF' - '90cmFuc2xhdGVfekIRCg9fcm90YXRpb25fYW5nbGVCDQoLX3JvdGF0aW9uX3hCDQoLX3JvdGF0' - 'aW9uX3lCDQoLX3JvdGF0aW9uX3pCCgoIX3NjYWxlX3hCCgoIX3NjYWxlX3lCCgoIX3NjYWxlX3' - 'o='); - -@$core.Deprecated('Use rectDataDescriptor instead') -const RectData$json = { - '1': 'RectData', - '2': [ - {'1': 'left', '3': 1, '4': 1, '5': 1, '10': 'left'}, - {'1': 'top', '3': 2, '4': 1, '5': 1, '10': 'top'}, - {'1': 'right', '3': 3, '4': 1, '5': 1, '10': 'right'}, - {'1': 'bottom', '3': 4, '4': 1, '5': 1, '10': 'bottom'}, - ], -}; - -/// Descriptor for `RectData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List rectDataDescriptor = $convert.base64Decode( - 'CghSZWN0RGF0YRISCgRsZWZ0GAEgASgBUgRsZWZ0EhAKA3RvcBgCIAEoAVIDdG9wEhQKBXJpZ2' - 'h0GAMgASgBUgVyaWdodBIWCgZib3R0b20YBCABKAFSBmJvdHRvbQ=='); - -@$core.Deprecated('Use shadowDataDescriptor instead') -const ShadowData$json = { - '1': 'ShadowData', - '2': [ - { - '1': 'color', - '3': 1, - '4': 1, - '5': 11, - '6': '.flutter_sdui.ColorData', - '10': 'color' - }, - {'1': 'offset_x', '3': 2, '4': 1, '5': 1, '10': 'offsetX'}, - {'1': 'offset_y', '3': 3, '4': 1, '5': 1, '10': 'offsetY'}, - {'1': 'blur_radius', '3': 4, '4': 1, '5': 1, '10': 'blurRadius'}, - ], -}; - -/// Descriptor for `ShadowData`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List shadowDataDescriptor = $convert.base64Decode( - 'CgpTaGFkb3dEYXRhEi0KBWNvbG9yGAEgASgLMhcuZmx1dHRlcl9zZHVpLkNvbG9yRGF0YVIFY2' - '9sb3ISGQoIb2Zmc2V0X3gYAiABKAFSB29mZnNldFgSGQoIb2Zmc2V0X3kYAyABKAFSB29mZnNl' - 'dFkSHwoLYmx1cl9yYWRpdXMYBCABKAFSCmJsdXJSYWRpdXM='); - -@$core.Deprecated('Use sduiRequestDescriptor instead') -const SduiRequest$json = { - '1': 'SduiRequest', - '2': [ - {'1': 'screen_id', '3': 1, '4': 1, '5': 9, '10': 'screenId'}, - ], -}; - -/// Descriptor for `SduiRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List sduiRequestDescriptor = $convert - .base64Decode('CgtTZHVpUmVxdWVzdBIbCglzY3JlZW5faWQYASABKAlSCHNjcmVlbklk'); diff --git a/lib/src/parser/flutter_to_sdui.dart b/lib/src/parser/flutter_to_glimpse.dart similarity index 74% rename from lib/src/parser/flutter_to_sdui.dart rename to lib/src/parser/flutter_to_glimpse.dart index db0b29c..0ede646 100644 --- a/lib/src/parser/flutter_to_sdui.dart +++ b/lib/src/parser/flutter_to_glimpse.dart @@ -1,20 +1,10 @@ import 'package:flutter/material.dart'; -import 'package:flutter_sdui/src/widgets/sdui_column.dart'; -import 'package:flutter_sdui/src/widgets/sdui_row.dart'; -import 'package:flutter_sdui/src/widgets/sdui_text.dart'; -import 'package:flutter_sdui/src/widgets/sdui_image.dart'; -import 'package:flutter_sdui/src/widgets/sdui_sized_box.dart'; -import 'package:flutter_sdui/src/widgets/sdui_container.dart'; -import 'package:flutter_sdui/src/widgets/sdui_scaffold.dart'; -import 'package:flutter_sdui/src/widgets/sdui_spacer.dart'; -import 'package:flutter_sdui/src/widgets/sdui_icon.dart'; -import 'package:flutter_sdui/src/widgets/sdui_appbar.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/flutter_glimpse.dart'; -SduiWidget flutterToSdui(Widget widget) { +GlimpseWidget flutterToGlimpse(Widget widget) { if (widget is Column) { - return SduiColumn( - children: widget.children.map(flutterToSdui).toList(), + return GlimpseColumn( + children: widget.children.map(flutterToGlimpse).toList(), mainAxisAlignment: widget.mainAxisAlignment, crossAxisAlignment: widget.crossAxisAlignment, mainAxisSize: widget.mainAxisSize, @@ -23,8 +13,8 @@ SduiWidget flutterToSdui(Widget widget) { textBaseline: widget.textBaseline, ); } else if (widget is Row) { - return SduiRow( - children: widget.children.map(flutterToSdui).toList(), + return GlimpseRow( + children: widget.children.map(flutterToGlimpse).toList(), mainAxisAlignment: widget.mainAxisAlignment, crossAxisAlignment: widget.crossAxisAlignment, mainAxisSize: widget.mainAxisSize, @@ -33,7 +23,7 @@ SduiWidget flutterToSdui(Widget widget) { textBaseline: widget.textBaseline, ); } else if (widget is Text) { - return SduiText( + return GlimpseText( widget.data ?? '', style: widget.style, textAlign: widget.textAlign, @@ -46,7 +36,7 @@ SduiWidget flutterToSdui(Widget widget) { // Only support Image.network for now if (widget.image is NetworkImage) { final net = widget.image as NetworkImage; - return SduiImage( + return GlimpseImage( net.url, width: widget.width, height: widget.height, @@ -70,14 +60,14 @@ SduiWidget flutterToSdui(Widget widget) { throw UnimplementedError('Only Image.network is supported'); } } else if (widget is SizedBox) { - return SduiSizedBox( + return GlimpseSizedBox( width: widget.width, height: widget.height, - child: widget.child != null ? flutterToSdui(widget.child!) : null, + child: widget.child != null ? flutterToGlimpse(widget.child!) : null, ); } else if (widget is Container) { - return SduiContainer( - child: widget.child != null ? flutterToSdui(widget.child!) : null, + return GlimpseContainer( + child: widget.child != null ? flutterToGlimpse(widget.child!) : null, padding: widget.padding is EdgeInsets ? widget.padding as EdgeInsets : null, margin: widget.margin is EdgeInsets ? widget.margin as EdgeInsets : null, @@ -97,20 +87,20 @@ SduiWidget flutterToSdui(Widget widget) { clipBehavior: widget.clipBehavior, ); } else if (widget is Scaffold) { - return SduiScaffold( - appBar: widget.appBar != null ? flutterToSdui(widget.appBar!) : null, - body: widget.body != null ? flutterToSdui(widget.body!) : null, + return GlimpseScaffold( + appBar: widget.appBar != null ? flutterToGlimpse(widget.appBar!) : null, + body: widget.body != null ? flutterToGlimpse(widget.body!) : null, floatingActionButton: widget.floatingActionButton != null - ? flutterToSdui(widget.floatingActionButton!) + ? flutterToGlimpse(widget.floatingActionButton!) : null, bottomNavigationBar: widget.bottomNavigationBar != null - ? flutterToSdui(widget.bottomNavigationBar!) + ? flutterToGlimpse(widget.bottomNavigationBar!) : null, - drawer: widget.drawer != null ? flutterToSdui(widget.drawer!) : null, + drawer: widget.drawer != null ? flutterToGlimpse(widget.drawer!) : null, endDrawer: - widget.endDrawer != null ? flutterToSdui(widget.endDrawer!) : null, + widget.endDrawer != null ? flutterToGlimpse(widget.endDrawer!) : null, bottomSheet: widget.bottomSheet != null - ? flutterToSdui(widget.bottomSheet!) + ? flutterToGlimpse(widget.bottomSheet!) : null, backgroundColor: widget.backgroundColor, resizeToAvoidBottomInset: widget.resizeToAvoidBottomInset, @@ -124,9 +114,9 @@ SduiWidget flutterToSdui(Widget widget) { endDrawerEnableOpenDragGesture: widget.endDrawerEnableOpenDragGesture, ); } else if (widget is Spacer) { - return SduiSpacer(flex: widget.flex); + return GlimpseSpacer(flex: widget.flex); } else if (widget is Icon) { - return SduiIcon( + return GlimpseIcon( icon: widget.icon, size: widget.size, color: widget.color, @@ -137,7 +127,7 @@ SduiWidget flutterToSdui(Widget widget) { shadows: widget.shadows, ); } else if (widget is AppBar) { - return SduiAppBar( + return GlimpseAppBar( title: widget.title is Text ? (widget.title as Text).data : null, backgroundColor: widget.backgroundColor, foregroundColor: widget.foregroundColor, diff --git a/lib/src/parser/sdui_proto_parser.dart b/lib/src/parser/glimpse_proto_parser.dart similarity index 91% rename from lib/src/parser/sdui_proto_parser.dart rename to lib/src/parser/glimpse_proto_parser.dart index d9cb940..67ae74e 100644 --- a/lib/src/parser/sdui_proto_parser.dart +++ b/lib/src/parser/glimpse_proto_parser.dart @@ -2,30 +2,19 @@ import 'dart:developer'; import 'package:flutter/material.dart'; -import 'package:flutter_sdui/src/generated/sdui.pb.dart'; -import 'package:flutter_sdui/src/widgets/sdui_appbar.dart'; -import 'package:flutter_sdui/src/widgets/sdui_column.dart'; -import 'package:flutter_sdui/src/widgets/sdui_container.dart'; -import 'package:flutter_sdui/src/widgets/sdui_icon.dart'; -import 'package:flutter_sdui/src/widgets/sdui_image.dart'; -import 'package:flutter_sdui/src/widgets/sdui_row.dart'; -import 'package:flutter_sdui/src/widgets/sdui_scaffold.dart'; -import 'package:flutter_sdui/src/widgets/sdui_sized_box.dart'; -import 'package:flutter_sdui/src/widgets/sdui_spacer.dart'; -import 'package:flutter_sdui/src/widgets/sdui_text.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; - -/// Parser for converting server-side widget definitions to SDUI widgets. +import 'package:flutter_glimpse/flutter_glimpse.dart'; + +/// Parser for converting server-side widget definitions to Glimpse widgets. /// /// This class handles the conversion of protobuf-based widget definitions -/// received from the server into corresponding SDUI widget instances that +/// received from the server into corresponding Glimpse widget instances that /// can be rendered in the Flutter application. /// /// The parser supports various widget types and their properties, maintaining /// type safety through protobuf definitions while providing flexibility /// for server-driven UI updates. -class SduiParser { - /// Parses JSON data into SDUI widgets. +class GlimpseParser { + /// Parses JSON data into Glimpse widgets. /// /// This method is currently not implemented and will throw an /// [UnimplementedError]. Future versions may support JSON-based @@ -33,9 +22,9 @@ class SduiParser { /// /// [data] - The JSON map containing widget definition /// - /// Returns a parsed [SduiWidget] instance. + /// Returns a parsed [GlimpseWidget] instance. /// Throws [UnimplementedError] - JSON parsing is not yet supported. - static SduiWidget parseJSON(Map data) { + static GlimpseWidget parseJSON(Map data) { final String? type = data['type']?.toString().toLowerCase(); switch (type) { case 'column': @@ -56,25 +45,25 @@ class SduiParser { return _parseJsonSpacer(data); case 'icon': return _parseJsonIcon(data); - case 'appbar': + case 'app_bar': return _parseJsonAppBar(data); default: - return SduiContainer(); + return GlimpseContainer(); } } - /// Parses protobuf widget data into SDUI widgets. + /// Parses protobuf widget data into Glimpse widgets. /// /// This is the main parsing method that converts server-provided protobuf - /// widget definitions into their corresponding SDUI widget instances. + /// widget definitions into their corresponding Glimpse widget instances. /// The method uses a switch statement to determine the widget type and /// delegates to specific parsing methods for each widget type. /// /// [data] - The protobuf widget data received from the server /// - /// Returns a parsed [SduiWidget] instance, or [SduiContainer] if the + /// Returns a parsed [GlimpseWidget] instance, or [GlimpseContainer] if the /// widget type is unsupported. - static SduiWidget parseProto(SduiWidgetData data) { + static GlimpseWidget parseProto(GlimpseWidgetData data) { switch (data.type) { case WidgetType.COLUMN: return _parseProtoColumn(data); @@ -94,23 +83,23 @@ class SduiParser { return _parseProtoSpacer(data); case WidgetType.ICON: return _parseProtoIcon(data); - case WidgetType.APPBAR: + case WidgetType.APP_BAR: return _parseProtoAppBar(data); default: log('Unsupported widget type: ${data.type}'); - return SduiContainer(); + return GlimpseContainer(); } } - /// Parses protobuf data into a [SduiColumn] widget. + /// Parses protobuf data into a [GlimpseColumn] widget. /// /// Extracts all column-specific properties from the protobuf data /// and recursively parses child widgets. - static SduiColumn _parseProtoColumn(SduiWidgetData data) { - final List children = - data.children.map((child) => SduiParser.parseProto(child)).toList(); + static GlimpseColumn _parseProtoColumn(GlimpseWidgetData data) { + final List children = + data.children.map((child) => GlimpseParser.parseProto(child)).toList(); - return SduiColumn( + return GlimpseColumn( children: children, mainAxisAlignment: _parseProtoMainAxisAlignment(data.mainAxisAlignment), crossAxisAlignment: @@ -122,15 +111,15 @@ class SduiParser { ); } - /// Parses protobuf data into a [SduiRow] widget. + /// Parses protobuf data into a [GlimpseRow] widget. /// /// Extracts all row-specific properties from the protobuf data /// and recursively parses child widgets. - static SduiRow _parseProtoRow(SduiWidgetData data) { - final List children = - data.children.map((child) => SduiParser.parseProto(child)).toList(); + static GlimpseRow _parseProtoRow(GlimpseWidgetData data) { + final List children = + data.children.map((child) => GlimpseParser.parseProto(child)).toList(); - return SduiRow( + return GlimpseRow( children: children, mainAxisAlignment: _parseProtoMainAxisAlignment(data.mainAxisAlignment), crossAxisAlignment: @@ -142,12 +131,12 @@ class SduiParser { ); } - /// Parses protobuf data into a [SduiText] widget. + /// Parses protobuf data into a [GlimpseText] widget. /// /// Extracts text content and all styling properties from the protobuf data. /// Text content is retrieved from the stringAttributes map, while styling /// properties are parsed from individual fields. - static SduiText _parseProtoText(SduiWidgetData data) { + static GlimpseText _parseProtoText(GlimpseWidgetData data) { final String text = data.stringAttributes['text'] ?? ''; final TextStyle? style = data.hasTextStyle() ? _parseProtoTextStyle(data.textStyle) : null; @@ -190,7 +179,7 @@ class SduiParser { } } - return SduiText( + return GlimpseText( text, style: style, textAlign: textAlign, @@ -209,11 +198,11 @@ class SduiParser { ); } - /// Parses protobuf data into a [SduiImage] widget. + /// Parses protobuf data into a [GlimpseImage] widget. /// /// Extracts image source URL and all display properties including sizing, /// alignment, color blending, and caching options. - static SduiImage _parseProtoImage(SduiWidgetData data) { + static GlimpseImage _parseProtoImage(GlimpseWidgetData data) { final String src = data.stringAttributes['src'] ?? ''; final double? width = data.doubleAttributes['width']; final double? height = data.doubleAttributes['height']; @@ -238,13 +227,13 @@ class SduiParser { data.hasSemanticLabel() ? data.semanticLabel : null; final Widget? errorWidget = data.hasErrorWidget() - ? SduiParser.parseProto(data.errorWidget).toFlutterWidget() + ? GlimpseParser.parseProto(data.errorWidget).toFlutterWidget() : null; final Widget? loadingWidget = data.hasLoadingWidget() - ? SduiParser.parseProto(data.loadingWidget).toFlutterWidget() + ? GlimpseParser.parseProto(data.loadingWidget).toFlutterWidget() : null; - return SduiImage( + return GlimpseImage( src, width: width, height: height, @@ -266,17 +255,17 @@ class SduiParser { ); } - static SduiSizedBox _parseProtoSizedBox(SduiWidgetData data) { + static GlimpseSizedBox _parseProtoSizedBox(GlimpseWidgetData data) { double? width = data.doubleAttributes['width']; double? height = data.doubleAttributes['height']; - SduiWidget? child = - data.hasChild() ? SduiParser.parseProto(data.child) : null; - return SduiSizedBox(width: width, height: height, child: child); + GlimpseWidget? child = + data.hasChild() ? GlimpseParser.parseProto(data.child) : null; + return GlimpseSizedBox(width: width, height: height, child: child); } - static SduiContainer _parseProtoContainer(SduiWidgetData data) { - SduiWidget? child = - data.hasChild() ? SduiParser.parseProto(data.child) : null; + static GlimpseContainer _parseProtoContainer(GlimpseWidgetData data) { + GlimpseWidget? child = + data.hasChild() ? GlimpseParser.parseProto(data.child) : null; EdgeInsets? padding = data.hasPadding() ? _parseProtoEdgeInsets(data.padding) : null; EdgeInsets? margin = @@ -299,7 +288,7 @@ class SduiParser { : null; Clip? clipBehavior = _parseProtoClip(data.clipBehavior); - return SduiContainer( + return GlimpseContainer( child: child, padding: padding, margin: margin, @@ -315,26 +304,28 @@ class SduiParser { ); } - static SduiScaffold _parseProtoScaffold(SduiWidgetData data) { - SduiWidget? appBar = - data.hasAppBar() ? SduiParser.parseProto(data.appBar) : null; - SduiWidget? body = data.hasBody() ? SduiParser.parseProto(data.body) : null; - SduiWidget? floatingActionButton = data.hasFloatingActionButton() - ? SduiParser.parseProto(data.floatingActionButton) + static GlimpseScaffold _parseProtoScaffold(GlimpseWidgetData data) { + GlimpseWidget? appBar = + data.hasAppBar() ? GlimpseParser.parseProto(data.appBar) : null; + GlimpseWidget? body = + data.hasBody() ? GlimpseParser.parseProto(data.body) : null; + GlimpseWidget? floatingActionButton = data.hasFloatingActionButton() + ? GlimpseParser.parseProto(data.floatingActionButton) : null; Color? backgroundColor = data.hasBackgroundColor() ? _parseProtoColor(data.backgroundColor) : null; - SduiWidget? bottomNavigationBar = data.hasBottomNavigationBar() - ? SduiParser.parseProto(data.bottomNavigationBar) + GlimpseWidget? bottomNavigationBar = data.hasBottomNavigationBar() + ? GlimpseParser.parseProto(data.bottomNavigationBar) + : null; + GlimpseWidget? drawer = + data.hasDrawer() ? GlimpseParser.parseProto(data.drawer) : null; + GlimpseWidget? endDrawer = + data.hasEndDrawer() ? GlimpseParser.parseProto(data.endDrawer) : null; + GlimpseWidget? bottomSheet = data.hasBottomSheet() + ? GlimpseParser.parseProto(data.bottomSheet) : null; - SduiWidget? drawer = - data.hasDrawer() ? SduiParser.parseProto(data.drawer) : null; - SduiWidget? endDrawer = - data.hasEndDrawer() ? SduiParser.parseProto(data.endDrawer) : null; - SduiWidget? bottomSheet = - data.hasBottomSheet() ? SduiParser.parseProto(data.bottomSheet) : null; bool? resizeToAvoidBottomInset = data.hasResizeToAvoidBottomInset() ? data.resizeToAvoidBottomInset : null; @@ -359,7 +350,7 @@ class SduiParser { ? data.endDrawerEnableOpenDragGesture : null; - return SduiScaffold( + return GlimpseScaffold( appBar: appBar, body: body, floatingActionButton: floatingActionButton, @@ -380,12 +371,12 @@ class SduiParser { ); } - static SduiSpacer _parseProtoSpacer(SduiWidgetData data) { + static GlimpseSpacer _parseProtoSpacer(GlimpseWidgetData data) { int flex = data.intAttributes['flex'] ?? 1; - return SduiSpacer(flex: flex); + return GlimpseSpacer(flex: flex); } - static SduiIcon _parseProtoIcon(SduiWidgetData data) { + static GlimpseIcon _parseProtoIcon(GlimpseWidgetData data) { IconData? iconData = data.hasIcon() ? _parseProtoIconData(data.icon) : null; double? size = data.icon.size; Color? color = @@ -400,7 +391,7 @@ class SduiParser { ? data.shadows.map((s) => _parseProtoShadow(s)).toList() : null; - return SduiIcon( + return GlimpseIcon( icon: iconData, size: size, color: color, @@ -412,7 +403,7 @@ class SduiParser { ); } - static SduiAppBar _parseProtoAppBar(SduiWidgetData data) { + static GlimpseAppBar _parseProtoAppBar(GlimpseWidgetData data) { String? title = data.stringAttributes['title']; Color? backgroundColor = data.hasBackgroundColor() ? _parseProtoColor(data.backgroundColor) @@ -420,7 +411,7 @@ class SduiParser { double? elevation = data.doubleAttributes['elevation']; bool? centerTitle = data.boolAttributes['centerTitle']; - return SduiAppBar( + return GlimpseAppBar( title: title, backgroundColor: backgroundColor, foregroundColor: null, @@ -971,11 +962,11 @@ class SduiParser { } } - static SduiColumn _parseJsonColumn(Map data) { + static GlimpseColumn _parseJsonColumn(Map data) { final children = (data['children'] as List? ?? []) .map((child) => parseJSON(child as Map)) .toList(); - return SduiColumn( + return GlimpseColumn( children: children, mainAxisAlignment: _parseJsonMainAxisAlignment(data['mainAxisAlignment']), crossAxisAlignment: @@ -1076,11 +1067,11 @@ class SduiParser { } } - static SduiRow _parseJsonRow(Map data) { + static GlimpseRow _parseJsonRow(Map data) { final children = (data['children'] as List? ?? []) .map((child) => parseJSON(child as Map)) .toList(); - return SduiRow( + return GlimpseRow( children: children, mainAxisAlignment: _parseJsonMainAxisAlignment(data['mainAxisAlignment']), crossAxisAlignment: @@ -1092,8 +1083,8 @@ class SduiParser { ); } - static SduiText _parseJsonText(Map data) { - return SduiText( + static GlimpseText _parseJsonText(Map data) { + return GlimpseText( data['text']?.toString() ?? '', style: _parseJsonTextStyle(data['style']), textAlign: _parseJsonTextAlign(data['textAlign']), @@ -1115,15 +1106,16 @@ class SduiParser { ); } - static SduiImage _parseJsonImage(Map data) { - SduiWidget? errorSduiWidget = data['errorWidget'] is Map - ? parseJSON(data['errorWidget']) - : null; - SduiWidget? loadingSduiWidget = + static GlimpseImage _parseJsonImage(Map data) { + GlimpseWidget? errorGlimpseWidget = + data['errorWidget'] is Map + ? parseJSON(data['errorWidget']) + : null; + GlimpseWidget? loadingGlimpseWidget = data['loadingWidget'] is Map ? parseJSON(data['loadingWidget']) : null; - return SduiImage( + return GlimpseImage( data['src']?.toString() ?? '', width: (data['width'] is num) ? (data['width'] as num).toDouble() : null, height: @@ -1148,13 +1140,13 @@ class SduiParser { : int.tryParse(data['cacheHeight']?.toString() ?? ''), scale: (data['scale'] is num) ? (data['scale'] as num).toDouble() : null, semanticLabel: data['semanticLabel']?.toString(), - errorWidget: errorSduiWidget?.toFlutterWidget(), - loadingWidget: loadingSduiWidget?.toFlutterWidget(), + errorWidget: errorGlimpseWidget?.toFlutterWidget(), + loadingWidget: loadingGlimpseWidget?.toFlutterWidget(), ); } - static SduiSizedBox _parseJsonSizedBox(Map data) { - return SduiSizedBox( + static GlimpseSizedBox _parseJsonSizedBox(Map data) { + return GlimpseSizedBox( width: (data['width'] is num) ? (data['width'] as num).toDouble() : null, height: (data['height'] is num) ? (data['height'] as num).toDouble() : null, @@ -1164,8 +1156,8 @@ class SduiParser { ); } - static SduiContainer _parseJsonContainer(Map data) { - return SduiContainer( + static GlimpseContainer _parseJsonContainer(Map data) { + return GlimpseContainer( child: data['child'] is Map ? parseJSON(data['child']) : null, @@ -1185,8 +1177,8 @@ class SduiParser { ); } - static SduiScaffold _parseJsonScaffold(Map data) { - return SduiScaffold( + static GlimpseScaffold _parseJsonScaffold(Map data) { + return GlimpseScaffold( appBar: data['appBar'] is Map ? parseJSON(data['appBar']) : null, @@ -1232,16 +1224,16 @@ class SduiParser { ); } - static SduiSpacer _parseJsonSpacer(Map data) { - return SduiSpacer( + static GlimpseSpacer _parseJsonSpacer(Map data) { + return GlimpseSpacer( flex: data['flex'] is int ? data['flex'] : int.tryParse(data['flex']?.toString() ?? '') ?? 1, ); } - static SduiIcon _parseJsonIcon(Map data) { - return SduiIcon( + static GlimpseIcon _parseJsonIcon(Map data) { + return GlimpseIcon( icon: _parseJsonIconData(data['icon']), size: (data['size'] is num) ? (data['size'] as num).toDouble() : null, color: _parseJsonColor(data['color']), @@ -1255,28 +1247,29 @@ class SduiParser { ); } - static SduiAppBar _parseJsonAppBar(Map data) { + static GlimpseAppBar _parseJsonAppBar(Map data) { List? actions; if (data['actions'] is List) { actions = (data['actions'] as List) - .map((a) => SduiParser.parseJSON(a as Map).toFlutterWidget()) + .map((a) => + GlimpseParser.parseJSON(a as Map).toFlutterWidget()) .toList(); } Widget? leading; if (data['leading'] != null) { - leading = SduiParser.parseJSON(data['leading'] as Map) + leading = GlimpseParser.parseJSON(data['leading'] as Map) .toFlutterWidget(); } Widget? flexibleSpace; if (data['flexibleSpace'] != null) { flexibleSpace = - SduiParser.parseJSON(data['flexibleSpace'] as Map) + GlimpseParser.parseJSON(data['flexibleSpace'] as Map) .toFlutterWidget(); } - return SduiAppBar( + return GlimpseAppBar( title: data['title']?.toString(), backgroundColor: _parseJsonColor(data['backgroundColor']), foregroundColor: _parseJsonColor(data['foregroundColor']), @@ -1892,30 +1885,30 @@ class SduiParser { return null; } - static Map toJson(SduiWidget widget) { - if (widget is SduiColumn) { + static Map toJson(GlimpseWidget widget) { + if (widget is GlimpseColumn) { return _toJsonColumn(widget); - } else if (widget is SduiRow) { + } else if (widget is GlimpseRow) { return _toJsonRow(widget); - } else if (widget is SduiText) { + } else if (widget is GlimpseText) { return _toJsonText(widget); - } else if (widget is SduiImage) { + } else if (widget is GlimpseImage) { return _toJsonImage(widget); - } else if (widget is SduiSizedBox) { + } else if (widget is GlimpseSizedBox) { return _toJsonSizedBox(widget); - } else if (widget is SduiContainer) { + } else if (widget is GlimpseContainer) { return _toJsonContainer(widget); - } else if (widget is SduiScaffold) { + } else if (widget is GlimpseScaffold) { return _toJsonScaffold(widget); - } else if (widget is SduiSpacer) { + } else if (widget is GlimpseSpacer) { return _toJsonSpacer(widget); - } else if (widget is SduiIcon) { + } else if (widget is GlimpseIcon) { return _toJsonIcon(widget); } return {}; } - static Map _toJsonColumn(SduiColumn widget) { + static Map _toJsonColumn(GlimpseColumn widget) { return { 'type': 'column', if (widget.mainAxisAlignment != null) @@ -1937,7 +1930,7 @@ class SduiParser { }; } - static Map _toJsonRow(SduiRow widget) { + static Map _toJsonRow(GlimpseRow widget) { return { 'type': 'row', if (widget.mainAxisAlignment != null) @@ -1959,7 +1952,7 @@ class SduiParser { }; } - static Map _toJsonText(SduiText widget) { + static Map _toJsonText(GlimpseText widget) { return { 'type': 'text', 'text': widget.text, @@ -1997,7 +1990,7 @@ class SduiParser { }; } - static Map _toJsonImage(SduiImage widget) { + static Map _toJsonImage(GlimpseImage widget) { return { 'type': 'image', 'src': widget.src, @@ -2026,7 +2019,7 @@ class SduiParser { }; } - static Map _toJsonSizedBox(SduiSizedBox widget) { + static Map _toJsonSizedBox(GlimpseSizedBox widget) { return { 'type': 'sized_box', if (widget.width != null) 'width': widget.width, @@ -2035,7 +2028,7 @@ class SduiParser { }; } - static Map _toJsonContainer(SduiContainer widget) { + static Map _toJsonContainer(GlimpseContainer widget) { return { 'type': 'container', if (widget.child != null) 'child': toJson(widget.child!), @@ -2058,7 +2051,7 @@ class SduiParser { }; } - static Map _toJsonScaffold(SduiScaffold widget) { + static Map _toJsonScaffold(GlimpseScaffold widget) { return { 'type': 'scaffold', if (widget.appBar != null) 'appBar': toJson(widget.appBar!), @@ -2095,14 +2088,14 @@ class SduiParser { }; } - static Map _toJsonSpacer(SduiSpacer widget) { + static Map _toJsonSpacer(GlimpseSpacer widget) { return { 'type': 'spacer', 'flex': widget.flex, }; } - static Map _toJsonIcon(SduiIcon widget) { + static Map _toJsonIcon(GlimpseIcon widget) { return { 'type': 'icon', if (widget.icon != null) 'icon': widget.icon!.codePoint, @@ -2291,9 +2284,9 @@ class SduiParser { } } - static SduiWidgetData columnToProto(SduiColumn col) { - final data = SduiWidgetData()..type = WidgetType.COLUMN; - data.children.addAll(col.children.map((c) => SduiParser.toProto(c))); + static GlimpseWidgetData columnToProto(GlimpseColumn col) { + final data = GlimpseWidgetData()..type = WidgetType.COLUMN; + data.children.addAll(col.children.map((c) => GlimpseParser.toProto(c))); if (col.mainAxisAlignment != null) { data.mainAxisAlignment = _mainAxisAlignmentToProto(col.mainAxisAlignment!); @@ -2318,9 +2311,9 @@ class SduiParser { return data; } - static SduiColumn columnFromProto(SduiWidgetData data) { - return SduiColumn( - children: data.children.map((c) => SduiParser.parseProto(c)).toList(), + static GlimpseColumn columnFromProto(GlimpseWidgetData data) { + return GlimpseColumn( + children: data.children.map((c) => GlimpseParser.parseProto(c)).toList(), mainAxisAlignment: _parseProtoMainAxisAlignment(data.mainAxisAlignment), crossAxisAlignment: _parseProtoCrossAxisAlignment(data.crossAxisAlignment), @@ -2331,31 +2324,31 @@ class SduiParser { ); } - static SduiWidgetData toProto(SduiWidget widget) { - if (widget is SduiColumn) { + static GlimpseWidgetData toProto(GlimpseWidget widget) { + if (widget is GlimpseColumn) { return columnToProto(widget); - } else if (widget is SduiRow) { + } else if (widget is GlimpseRow) { return rowToProto(widget); - } else if (widget is SduiText) { + } else if (widget is GlimpseText) { return textToProto(widget); - } else if (widget is SduiImage) { + } else if (widget is GlimpseImage) { return imageToProto(widget); - } else if (widget is SduiSizedBox) { + } else if (widget is GlimpseSizedBox) { return sizedBoxToProto(widget); - } else if (widget is SduiContainer) { + } else if (widget is GlimpseContainer) { return containerToProto(widget); - } else if (widget is SduiScaffold) { + } else if (widget is GlimpseScaffold) { return scaffoldToProto(widget); - } else if (widget is SduiSpacer) { + } else if (widget is GlimpseSpacer) { return spacerToProto(widget); - } else if (widget is SduiIcon) { + } else if (widget is GlimpseIcon) { return iconToProto(widget); } throw UnimplementedError( 'toProto not implemented for ${widget.runtimeType}'); } - static SduiWidget fromProto(SduiWidgetData data) { + static GlimpseWidget fromProto(GlimpseWidgetData data) { switch (data.type) { case WidgetType.COLUMN: return columnFromProto(data); @@ -2376,14 +2369,14 @@ class SduiParser { case WidgetType.ICON: return iconFromProto(data); default: - return SduiContainer(); + return GlimpseContainer(); } } - // --- SduiRow --- - static SduiWidgetData rowToProto(SduiRow row) { - final data = SduiWidgetData()..type = WidgetType.ROW; - data.children.addAll(row.children.map((c) => SduiParser.toProto(c))); + // --- GlimpseRow --- + static GlimpseWidgetData rowToProto(GlimpseRow row) { + final data = GlimpseWidgetData()..type = WidgetType.ROW; + data.children.addAll(row.children.map((c) => GlimpseParser.toProto(c))); if (row.mainAxisAlignment != null) { data.mainAxisAlignment = _mainAxisAlignmentToProto(row.mainAxisAlignment!); @@ -2408,9 +2401,9 @@ class SduiParser { return data; } - static SduiRow rowFromProto(SduiWidgetData data) { - List children = - data.children.map((c) => SduiParser.parseProto(c)).toList(); + static GlimpseRow rowFromProto(GlimpseWidgetData data) { + List children = + data.children.map((c) => GlimpseParser.parseProto(c)).toList(); MainAxisAlignment mainAxisAlignment = _parseProtoMainAxisAlignment(data.mainAxisAlignment) ?? MainAxisAlignment.start; @@ -2424,7 +2417,7 @@ class SduiParser { _parseProtoVerticalDirection(data.verticalDirection) ?? VerticalDirection.down; TextBaseline? textBaseline = _parseProtoTextBaseline(data.textBaseline); - return SduiRow( + return GlimpseRow( children: children, mainAxisAlignment: mainAxisAlignment, crossAxisAlignment: crossAxisAlignment, @@ -2435,9 +2428,9 @@ class SduiParser { ); } - // --- SduiText --- - static SduiWidgetData textToProto(SduiText text) { - final data = SduiWidgetData()..type = WidgetType.TEXT; + // --- GlimpseText --- + static GlimpseWidgetData textToProto(GlimpseText text) { + final data = GlimpseWidgetData()..type = WidgetType.TEXT; data.stringAttributes['text'] = text.text; if (text.style != null) data.textStyle = _textStyleToProto(text.style!); if (text.textAlign != null) { @@ -2467,7 +2460,7 @@ class SduiParser { return data; } - static SduiText textFromProto(SduiWidgetData data) { + static GlimpseText textFromProto(GlimpseWidgetData data) { String text = data.stringAttributes['text'] ?? ''; TextStyle? style = data.hasTextStyle() ? _parseProtoTextStyle(data.textStyle) : null; @@ -2495,7 +2488,7 @@ class SduiParser { Color? color = data.hasTextStyle() && data.textStyle.hasColor() ? _parseProtoColor(data.textStyle.color) : null; - return SduiText( + return GlimpseText( text, style: style, textAlign: textAlign, @@ -2514,9 +2507,9 @@ class SduiParser { ); } - // --- SduiImage --- - static SduiWidgetData imageToProto(SduiImage image) { - final data = SduiWidgetData()..type = WidgetType.IMAGE; + // --- GlimpseImage --- + static GlimpseWidgetData imageToProto(GlimpseImage image) { + final data = GlimpseWidgetData()..type = WidgetType.IMAGE; data.stringAttributes['src'] = image.src; if (image.width != null) data.doubleAttributes['width'] = image.width!; if (image.height != null) data.doubleAttributes['height'] = image.height!; @@ -2547,11 +2540,11 @@ class SduiParser { if (image.cacheHeight != null) data.cacheHeight = image.cacheHeight!; if (image.scale != null) data.scale = image.scale!; if (image.semanticLabel != null) data.semanticLabel = image.semanticLabel!; - // errorWidget and loadingWidget are not mapped (Widget, not SduiWidget) + // errorWidget and loadingWidget are not mapped (Widget, not GlimpseWidget) return data; } - static SduiImage imageFromProto(SduiWidgetData data) { + static GlimpseImage imageFromProto(GlimpseWidgetData data) { String src = data.stringAttributes['src'] ?? ''; double? width = data.doubleAttributes['width']; double? height = data.doubleAttributes['height']; @@ -2574,8 +2567,8 @@ class SduiParser { int? cacheHeight = data.hasCacheHeight() ? data.cacheHeight : null; double scale = data.hasScale() ? data.scale : 1.0; String? semanticLabel = data.hasSemanticLabel() ? data.semanticLabel : null; - // errorWidget and loadingWidget are not mapped (Widget, not SduiWidget) - return SduiImage( + // errorWidget and loadingWidget are not mapped (Widget, not GlimpseWidget) + return GlimpseImage( src, width: width, height: height, @@ -2693,26 +2686,26 @@ class SduiParser { } } - // --- SduiSizedBox --- - static SduiWidgetData sizedBoxToProto(SduiSizedBox box) { - final data = SduiWidgetData()..type = WidgetType.SIZED_BOX; + // --- GlimpseSizedBox --- + static GlimpseWidgetData sizedBoxToProto(GlimpseSizedBox box) { + final data = GlimpseWidgetData()..type = WidgetType.SIZED_BOX; if (box.width != null) data.doubleAttributes['width'] = box.width!; if (box.height != null) data.doubleAttributes['height'] = box.height!; if (box.child != null) data.child = toProto(box.child!); return data; } - static SduiSizedBox sizedBoxFromProto(SduiWidgetData data) { + static GlimpseSizedBox sizedBoxFromProto(GlimpseWidgetData data) { double? width = data.doubleAttributes['width']; double? height = data.doubleAttributes['height']; - SduiWidget? child = - data.hasChild() ? SduiParser.parseProto(data.child) : null; - return SduiSizedBox(width: width, height: height, child: child); + GlimpseWidget? child = + data.hasChild() ? GlimpseParser.parseProto(data.child) : null; + return GlimpseSizedBox(width: width, height: height, child: child); } - // --- SduiContainer --- - static SduiWidgetData containerToProto(SduiContainer c) { - final data = SduiWidgetData()..type = WidgetType.CONTAINER; + // --- GlimpseContainer --- + static GlimpseWidgetData containerToProto(GlimpseContainer c) { + final data = GlimpseWidgetData()..type = WidgetType.CONTAINER; if (c.child != null) data.child = toProto(c.child!); if (c.padding != null) data.padding = _edgeInsetsToProto(c.padding!); if (c.margin != null) data.margin = _edgeInsetsToProto(c.margin!); @@ -2740,9 +2733,9 @@ class SduiParser { return data; } - static SduiContainer containerFromProto(SduiWidgetData data) { - SduiWidget? child = - data.hasChild() ? SduiParser.parseProto(data.child) : null; + static GlimpseContainer containerFromProto(GlimpseWidgetData data) { + GlimpseWidget? child = + data.hasChild() ? GlimpseParser.parseProto(data.child) : null; EdgeInsets? padding = data.hasPadding() ? _parseProtoEdgeInsets(data.padding) : null; EdgeInsets? margin = @@ -2767,7 +2760,7 @@ class SduiParser { : null; Clip? clipBehavior = data.hasClipBehavior() ? _parseProtoClip(data.clipBehavior) : Clip.none; - return SduiContainer( + return GlimpseContainer( child: child, padding: padding, margin: margin, @@ -2871,9 +2864,9 @@ class SduiParser { } } - // --- SduiScaffold --- - static SduiWidgetData scaffoldToProto(SduiScaffold s) { - final data = SduiWidgetData()..type = WidgetType.SCAFFOLD; + // --- GlimpseScaffold --- + static GlimpseWidgetData scaffoldToProto(GlimpseScaffold s) { + final data = GlimpseWidgetData()..type = WidgetType.SCAFFOLD; if (s.appBar != null) data.appBar = toProto(s.appBar!); if (s.body != null) data.body = toProto(s.body!); if (s.floatingActionButton != null) { @@ -2915,22 +2908,24 @@ class SduiParser { return data; } - static SduiScaffold scaffoldFromProto(SduiWidgetData data) { - SduiWidget? appBar = - data.hasAppBar() ? SduiParser.parseProto(data.appBar) : null; - SduiWidget? body = data.hasBody() ? SduiParser.parseProto(data.body) : null; - SduiWidget? floatingActionButton = data.hasFloatingActionButton() - ? SduiParser.parseProto(data.floatingActionButton) + static GlimpseScaffold scaffoldFromProto(GlimpseWidgetData data) { + GlimpseWidget? appBar = + data.hasAppBar() ? GlimpseParser.parseProto(data.appBar) : null; + GlimpseWidget? body = + data.hasBody() ? GlimpseParser.parseProto(data.body) : null; + GlimpseWidget? floatingActionButton = data.hasFloatingActionButton() + ? GlimpseParser.parseProto(data.floatingActionButton) + : null; + GlimpseWidget? bottomNavigationBar = data.hasBottomNavigationBar() + ? GlimpseParser.parseProto(data.bottomNavigationBar) : null; - SduiWidget? bottomNavigationBar = data.hasBottomNavigationBar() - ? SduiParser.parseProto(data.bottomNavigationBar) + GlimpseWidget? drawer = + data.hasDrawer() ? GlimpseParser.parseProto(data.drawer) : null; + GlimpseWidget? endDrawer = + data.hasEndDrawer() ? GlimpseParser.parseProto(data.endDrawer) : null; + GlimpseWidget? bottomSheet = data.hasBottomSheet() + ? GlimpseParser.parseProto(data.bottomSheet) : null; - SduiWidget? drawer = - data.hasDrawer() ? SduiParser.parseProto(data.drawer) : null; - SduiWidget? endDrawer = - data.hasEndDrawer() ? SduiParser.parseProto(data.endDrawer) : null; - SduiWidget? bottomSheet = - data.hasBottomSheet() ? SduiParser.parseProto(data.bottomSheet) : null; Color? backgroundColor = data.hasBackgroundColor() ? _parseProtoColor(data.backgroundColor) : null; @@ -2957,7 +2952,7 @@ class SduiParser { data.hasEndDrawerEnableOpenDragGesture() ? data.endDrawerEnableOpenDragGesture : true; - return SduiScaffold( + return GlimpseScaffold( appBar: appBar, body: body, floatingActionButton: floatingActionButton, @@ -3020,21 +3015,21 @@ class SduiParser { return FloatingActionButtonLocationProto.FAB_CENTER_FLOAT; } - // --- SduiSpacer --- - static SduiWidgetData spacerToProto(SduiSpacer s) { - final data = SduiWidgetData()..type = WidgetType.SPACER; + // --- GlimpseSpacer --- + static GlimpseWidgetData spacerToProto(GlimpseSpacer s) { + final data = GlimpseWidgetData()..type = WidgetType.SPACER; data.intAttributes['flex'] = s.flex; return data; } - static SduiSpacer spacerFromProto(SduiWidgetData data) { + static GlimpseSpacer spacerFromProto(GlimpseWidgetData data) { int flex = data.intAttributes['flex'] ?? 1; - return SduiSpacer(flex: flex); + return GlimpseSpacer(flex: flex); } - // --- SduiIcon --- - static SduiWidgetData iconToProto(SduiIcon icon) { - final data = SduiWidgetData()..type = WidgetType.ICON; + // --- GlimpseIcon --- + static GlimpseWidgetData iconToProto(GlimpseIcon icon) { + final data = GlimpseWidgetData()..type = WidgetType.ICON; if (icon.icon != null) { data.icon = IconDataMessage() ..codePoint = icon.icon!.codePoint @@ -3056,7 +3051,7 @@ class SduiParser { return data; } - static SduiIcon iconFromProto(SduiWidgetData data) { + static GlimpseIcon iconFromProto(GlimpseWidgetData data) { IconData? iconData = data.hasIcon() ? _parseProtoIconData(data.icon) : null; double? size = data.icon.size; Color? color = @@ -3069,7 +3064,7 @@ class SduiParser { List? shadows = data.shadows.isNotEmpty ? data.shadows.map((s) => _parseProtoShadow(s)).toList() : null; - return SduiIcon( + return GlimpseIcon( icon: iconData, size: size, color: color, diff --git a/lib/src/protos/sdui.proto b/lib/src/protos/glimpse.proto similarity index 93% rename from lib/src/protos/sdui.proto rename to lib/src/protos/glimpse.proto index 697fcd2..2cb3a79 100644 --- a/lib/src/protos/sdui.proto +++ b/lib/src/protos/glimpse.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package flutter_sdui; +package flutter_glimpse; // Enum for Widget Types enum WidgetType { @@ -14,12 +14,12 @@ enum WidgetType { SCAFFOLD = 7; SPACER = 8; ICON = 9; - APPBAR = 10; + APP_BAR = 10; // Add other widget types here } // Generic Widget message -message SduiWidgetData { +message GlimpseWidgetData { WidgetType type = 1; map string_attributes = 2; // For simple string attributes like text content, image src map double_attributes = 3; // For numerical attributes like width, height, flex @@ -35,20 +35,20 @@ message SduiWidgetData { BoxDecorationData box_decoration = 11; // Children widgets - repeated SduiWidgetData children = 12; - SduiWidgetData child = 13; // For widgets that take a single child (e.g. SizedBox, Container) + repeated GlimpseWidgetData children = 12; + GlimpseWidgetData child = 13; // For widgets that take a single child (e.g. SizedBox, Container) // Scaffold specific parts - SduiWidgetData app_bar = 14; - SduiWidgetData body = 15; // Body can also be a single child - SduiWidgetData floating_action_button = 16; + GlimpseWidgetData app_bar = 14; + GlimpseWidgetData body = 15; // Body can also be a single child + GlimpseWidgetData floating_action_button = 16; ColorData background_color = 17; // For Scaffold background // New Scaffold attributes - SduiWidgetData bottom_navigation_bar = 18; - SduiWidgetData drawer = 19; - SduiWidgetData end_drawer = 20; - SduiWidgetData bottom_sheet = 21; + GlimpseWidgetData bottom_navigation_bar = 18; + GlimpseWidgetData drawer = 19; + GlimpseWidgetData end_drawer = 20; + GlimpseWidgetData bottom_sheet = 21; bool resize_to_avoid_bottom_inset = 22; bool primary = 23; FloatingActionButtonLocationProto floating_action_button_location = 24; @@ -95,8 +95,8 @@ message SduiWidgetData { int32 cache_height = 57; double scale = 58; string semantic_label = 59; - SduiWidgetData error_widget = 60; - SduiWidgetData loading_widget = 61; + GlimpseWidgetData error_widget = 60; + GlimpseWidgetData loading_widget = 61; // Icon specific attributes double opacity = 62; @@ -104,15 +104,15 @@ message SduiWidgetData { repeated ShadowData shadows = 64; // AppBar specific attributes - SduiWidgetData title_widget = 65; // For custom title widget + GlimpseWidgetData title_widget = 65; // For custom title widget ColorData foreground_color = 66; - repeated SduiWidgetData actions = 67; - SduiWidgetData leading = 68; - SduiWidgetData bottom = 69; + repeated GlimpseWidgetData actions = 67; + GlimpseWidgetData leading = 68; + GlimpseWidgetData bottom = 69; double toolbar_height = 70; double leading_width = 71; bool automatically_imply_leading = 72; - SduiWidgetData flexible_space = 73; + GlimpseWidgetData flexible_space = 73; double title_spacing = 74; double toolbar_opacity = 75; double bottom_opacity = 76; @@ -507,11 +507,11 @@ enum FloatingActionButtonLocationProto { } // Service definition -service SduiService { - rpc GetSduiWidget (SduiRequest) returns (SduiWidgetData); +service GlimpseService { + rpc GetGlimpseWidget (GlimpseRequest) returns (GlimpseWidgetData); } -message SduiRequest { +message GlimpseRequest { string screen_id = 1; // Example: identifier for which UI to fetch } diff --git a/lib/src/renderer/sdui_grpc_renderer.dart b/lib/src/renderer/glimpse_grpc_renderer.dart similarity index 74% rename from lib/src/renderer/sdui_grpc_renderer.dart rename to lib/src/renderer/glimpse_grpc_renderer.dart index a088c57..95d6391 100644 --- a/lib/src/renderer/sdui_grpc_renderer.dart +++ b/lib/src/renderer/glimpse_grpc_renderer.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; -import 'package:flutter_sdui/src/generated/sdui.pb.dart'; -import 'package:flutter_sdui/src/parser/sdui_proto_parser.dart'; -import 'package:flutter_sdui/src/service/sdui_grpc_client.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/generated/glimpse.pb.dart'; +import 'package:flutter_glimpse/src/parser/glimpse_proto_parser.dart'; +import 'package:flutter_glimpse/src/service/glimpse_grpc_client.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; /// A Flutter widget that renders server-driven UI from a gRPC server. /// @@ -15,16 +15,16 @@ import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; /// /// Example usage: /// ```dart -/// SduiGrpcRenderer( -/// client: sduiClient, +/// GlimpseGrpcRenderer( +/// client: glimpseClient, /// screenId: 'home', /// loadingWidget: CustomLoadingSpinner(), /// errorBuilder: (context, error) => ErrorWidget(error), /// ) /// ``` -class SduiGrpcRenderer extends StatefulWidget { +class GlimpseGrpcRenderer extends StatefulWidget { /// The gRPC client used to fetch widget data from the server. - final SduiGrpcClient client; + final GlimpseGrpcClient client; /// The identifier for the screen/UI to fetch from the server. /// This should correspond to a valid screen ID on the server. @@ -40,12 +40,12 @@ class SduiGrpcRenderer extends StatefulWidget { /// If not provided, a default error text widget is displayed. final Widget Function(BuildContext, Object)? errorBuilder; - /// Creates a new [SduiGrpcRenderer]. + /// Creates a new [GlimpseGrpcRenderer]. /// /// The [client] and [screenId] parameters are required. /// The [loadingWidget] and [errorBuilder] parameters are optional /// and provide customization for loading and error states. - const SduiGrpcRenderer({ + const GlimpseGrpcRenderer({ super.key, required this.client, required this.screenId, @@ -54,11 +54,11 @@ class SduiGrpcRenderer extends StatefulWidget { }); @override - State createState() => _SduiGrpcRendererState(); + State createState() => _GlimpseGrpcRendererState(); } -class _SduiGrpcRendererState extends State { - late Future _widgetFuture; +class _GlimpseGrpcRendererState extends State { + late Future _widgetFuture; @override void initState() { @@ -67,7 +67,7 @@ class _SduiGrpcRendererState extends State { } @override - void didUpdateWidget(SduiGrpcRenderer oldWidget) { + void didUpdateWidget(GlimpseGrpcRenderer oldWidget) { super.didUpdateWidget(oldWidget); if (oldWidget.screenId != widget.screenId || oldWidget.client != widget.client) { @@ -82,7 +82,7 @@ class _SduiGrpcRendererState extends State { @override Widget build(BuildContext context) { - return FutureBuilder( + return FutureBuilder( future: _widgetFuture, builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { @@ -95,8 +95,9 @@ class _SduiGrpcRendererState extends State { return Center(child: Text('Error: ${snapshot.error}')); } else if (snapshot.hasData) { // Parse the protobuf data and convert to Flutter widget - final SduiWidget sduiWidget = SduiParser.parseProto(snapshot.data!); - return sduiWidget.toFlutterWidget(); + final GlimpseWidget glimpseWidget = + GlimpseParser.parseProto(snapshot.data!); + return glimpseWidget.toFlutterWidget(); } else { return const SizedBox.shrink(); } diff --git a/lib/src/service/sdui_grpc_client.dart b/lib/src/service/glimpse_grpc_client.dart similarity index 79% rename from lib/src/service/sdui_grpc_client.dart rename to lib/src/service/glimpse_grpc_client.dart index 5c0c19d..7cf83d5 100644 --- a/lib/src/service/sdui_grpc_client.dart +++ b/lib/src/service/glimpse_grpc_client.dart @@ -1,7 +1,7 @@ import 'package:grpc/grpc.dart'; -import 'package:flutter_sdui/src/generated/sdui.pbgrpc.dart'; +import 'package:flutter_glimpse/src/generated/glimpse.pbgrpc.dart'; -/// A gRPC client for communicating with SDUI servers. +/// A gRPC client for communicating with Glimpse servers. /// /// This client handles the network communication between the Flutter app /// and the server that provides the UI definitions. It manages the gRPC @@ -9,7 +9,7 @@ import 'package:flutter_sdui/src/generated/sdui.pbgrpc.dart'; /// /// Example usage: /// ```dart -/// final client = SduiGrpcClient( +/// final client = GlimpseGrpcClient( /// host: 'your-server.com', /// port: 50051, /// secure: true, @@ -17,11 +17,11 @@ import 'package:flutter_sdui/src/generated/sdui.pbgrpc.dart'; /// /// final widgetData = await client.getWidget('home_screen'); /// ``` -class SduiGrpcClient { - late final SduiServiceClient _client; +class GlimpseGrpcClient { + late final GlimpseServiceClient _client; late final ClientChannel _channel; - /// Creates a new SDUI gRPC client. + /// Creates a new Glimpse gRPC client. /// /// Parameters: /// * [host] - The hostname or IP address of the gRPC server @@ -31,7 +31,7 @@ class SduiGrpcClient { /// The client will establish a connection to the server immediately upon /// construction. Call [dispose] when the client is no longer needed to /// properly close the connection. - SduiGrpcClient({ + GlimpseGrpcClient({ required String host, required int port, bool secure = false, @@ -46,7 +46,7 @@ class SduiGrpcClient { ), ); - _client = SduiServiceClient(_channel); + _client = GlimpseServiceClient(_channel); } /// Fetches widget data from the server for the specified screen. @@ -57,9 +57,9 @@ class SduiGrpcClient { /// /// Returns a [Future] that completes with the widget data, or throws /// a [GrpcError] if the request fails. - Future getWidget(String screenId) async { - final request = SduiRequest()..screenId = screenId; - return _client.getSduiWidget(request); + Future getWidget(String screenId) async { + final request = GlimpseRequest()..screenId = screenId; + return _client.getGlimpseWidget(request); } /// Closes the connection to the server and releases all resources. diff --git a/lib/src/widgets/sdui_appbar.dart b/lib/src/widgets/glimpse_appbar.dart similarity index 90% rename from lib/src/widgets/sdui_appbar.dart rename to lib/src/widgets/glimpse_appbar.dart index e730a8d..6dec420 100644 --- a/lib/src/widgets/sdui_appbar.dart +++ b/lib/src/widgets/glimpse_appbar.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/flutter_glimpse.dart'; -/// Represents an AppBar widget in SDUI. -class SduiAppBar extends SduiWidget { +/// Represents an AppBar widget in Glimpse. +class GlimpseAppBar extends GlimpseWidget { final String? title; final Color? backgroundColor; final Color? foregroundColor; @@ -19,7 +19,7 @@ class SduiAppBar extends SduiWidget { final double? toolbarOpacity; final double? bottomOpacity; - SduiAppBar({ + GlimpseAppBar({ this.title, this.backgroundColor, this.foregroundColor, diff --git a/lib/src/widgets/sdui_column.dart b/lib/src/widgets/glimpse_column.dart similarity index 87% rename from lib/src/widgets/sdui_column.dart rename to lib/src/widgets/glimpse_column.dart index d05bfdc..8eaef3f 100644 --- a/lib/src/widgets/sdui_column.dart +++ b/lib/src/widgets/glimpse_column.dart @@ -1,16 +1,16 @@ import 'package:flutter/widgets.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; -/// A server-driven UI widget that represents a Flutter [Column] widget. +/// A Glimpse widget that represents a Flutter [Column] widget. /// /// This widget displays its children in a vertical array, allowing for /// flexible layout configuration through server-defined properties. /// /// The column's layout behavior can be controlled through alignment, /// sizing, and direction properties that mirror Flutter's Column widget. -class SduiColumn extends SduiWidget { +class GlimpseColumn extends GlimpseWidget { /// The widgets below this widget in the tree. - final List children; + final List children; /// How the children should be placed along the main axis (vertically). final MainAxisAlignment? mainAxisAlignment; @@ -30,12 +30,12 @@ class SduiColumn extends SduiWidget { /// The baseline to use when aligning text within the column. final TextBaseline? textBaseline; - /// Creates a new [SduiColumn] widget. + /// Creates a new [GlimpseColumn] widget. /// /// The [children] parameter is required and defines the widgets to be /// laid out vertically. All other parameters are optional and control /// the layout behavior. - SduiColumn({ + GlimpseColumn({ required this.children, this.mainAxisAlignment, this.mainAxisSize, diff --git a/lib/src/widgets/sdui_container.dart b/lib/src/widgets/glimpse_container.dart similarity index 87% rename from lib/src/widgets/sdui_container.dart rename to lib/src/widgets/glimpse_container.dart index 2ed26d0..e95a409 100644 --- a/lib/src/widgets/sdui_container.dart +++ b/lib/src/widgets/glimpse_container.dart @@ -1,18 +1,18 @@ import 'package:flutter/widgets.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; -/// A server-driven UI widget that represents a Flutter [Container] widget. +/// A Glimpse widget that represents a Flutter [Container] widget. /// /// This widget combines common painting, positioning, and sizing widgets /// into a single convenient widget. It's one of the most versatile widgets -/// in the SDUI toolkit, supporting decoration, padding, margins, constraints, +/// in the Glimpse toolkit, supporting decoration, padding, margins, constraints, /// and transformations. /// /// Note: The [color] parameter is only applied when [decoration] is null. /// If both are specified, [decoration] takes precedence. -class SduiContainer extends SduiWidget { +class GlimpseContainer extends GlimpseWidget { /// The widget below this widget in the tree. - final SduiWidget? child; + final GlimpseWidget? child; /// Empty space to inscribe inside the decoration. The child is placed inside this padding. final EdgeInsets? padding; @@ -48,11 +48,11 @@ class SduiContainer extends SduiWidget { /// The clip behavior for the container's contents. final Clip? clipBehavior; - /// Creates a new [SduiContainer] widget. + /// Creates a new [GlimpseContainer] widget. /// /// All parameters are optional. The container's appearance and behavior /// are determined by the combination of properties provided. - SduiContainer({ + GlimpseContainer({ this.child, this.padding, this.margin, diff --git a/lib/src/widgets/sdui_icon.dart b/lib/src/widgets/glimpse_icon.dart similarity index 91% rename from lib/src/widgets/sdui_icon.dart rename to lib/src/widgets/glimpse_icon.dart index 2a4023a..b06c14f 100644 --- a/lib/src/widgets/sdui_icon.dart +++ b/lib/src/widgets/glimpse_icon.dart @@ -1,9 +1,9 @@ import 'dart:developer'; import 'package:flutter/material.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; -/// A server-driven UI widget that represents a Flutter [Icon] widget. +/// A Glimpse widget that represents a Flutter [Icon] widget. /// /// This widget displays a graphical icon from Flutter's built-in icon sets /// or custom icon fonts. It supports comprehensive styling options including @@ -11,7 +11,7 @@ import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; /// /// The widget can handle missing icon data gracefully by rendering an empty /// widget instead of throwing an error. -class SduiIcon extends SduiWidget { +class GlimpseIcon extends GlimpseWidget { /// The icon to display. If null, an empty widget will be rendered. final IconData? icon; @@ -36,12 +36,12 @@ class SduiIcon extends SduiWidget { /// A list of shadows to cast behind the icon. final List? shadows; - /// Creates a new [SduiIcon] widget. + /// Creates a new [GlimpseIcon] widget. /// /// All parameters are optional. If [icon] is null, an empty widget /// will be rendered. The [opacity] will be applied using an [Opacity] /// widget if the value is less than 1.0. - SduiIcon({ + GlimpseIcon({ this.icon, this.size, this.color, diff --git a/lib/src/widgets/sdui_image.dart b/lib/src/widgets/glimpse_image.dart similarity index 92% rename from lib/src/widgets/sdui_image.dart rename to lib/src/widgets/glimpse_image.dart index 3b1e66c..c95901d 100644 --- a/lib/src/widgets/sdui_image.dart +++ b/lib/src/widgets/glimpse_image.dart @@ -1,9 +1,9 @@ import 'dart:developer'; import 'package:flutter/widgets.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; -/// A server-driven UI widget that represents a Flutter [Image] widget. +/// A Glimpse widget that represents a Flutter [Image] widget. /// /// This widget supports displaying images from network URLs with comprehensive /// customization options for sizing, alignment, color blending, and caching. @@ -13,7 +13,7 @@ import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; /// /// The widget provides loading and error handling capabilities through /// optional custom widgets. -class SduiImage extends SduiWidget { +class GlimpseImage extends GlimpseWidget { /// The network URL of the image to display. final String src; @@ -68,12 +68,12 @@ class SduiImage extends SduiWidget { /// Widget to display while the image is loading. final Widget? loadingWidget; - /// Creates a new [SduiImage] widget. + /// Creates a new [GlimpseImage] widget. /// /// The [src] parameter is required and must be a valid network URL. /// All other parameters are optional and provide customization for /// image display and behavior. - SduiImage( + GlimpseImage( this.src, { this.width, this.height, @@ -125,8 +125,7 @@ class SduiImage extends SduiWidget { ); } else { // Return empty widget for non-network URLs with warning - log( - "Warning: SduiImage currently only supports network images. Provided src: $src"); + log("Warning: GlimpseImage currently only supports network images. Provided src: $src"); return const SizedBox.shrink(); } } diff --git a/lib/src/widgets/sdui_row.dart b/lib/src/widgets/glimpse_row.dart similarity index 87% rename from lib/src/widgets/sdui_row.dart rename to lib/src/widgets/glimpse_row.dart index 5c13cf2..d607ec9 100644 --- a/lib/src/widgets/sdui_row.dart +++ b/lib/src/widgets/glimpse_row.dart @@ -1,16 +1,16 @@ import 'package:flutter/widgets.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; -/// A server-driven UI widget that represents a Flutter [Row] widget. +/// A Glimpse widget that represents a Flutter [Row] widget. /// /// This widget displays its children in a horizontal array, allowing for /// flexible layout configuration through server-defined properties. /// /// The row's layout behavior can be controlled through alignment, /// sizing, and direction properties that mirror Flutter's Row widget. -class SduiRow extends SduiWidget { +class GlimpseRow extends GlimpseWidget { /// The widgets below this widget in the tree. - final List children; + final List children; /// How the children should be placed along the main axis (horizontally). final MainAxisAlignment? mainAxisAlignment; @@ -30,12 +30,12 @@ class SduiRow extends SduiWidget { /// The baseline to use when aligning text within the row. final TextBaseline? textBaseline; - /// Creates a new [SduiRow] widget. + /// Creates a new [GlimpseRow] widget. /// /// The [children] parameter is required and defines the widgets to be /// laid out horizontally. All other parameters are optional and control /// the layout behavior. - SduiRow({ + GlimpseRow({ required this.children, this.mainAxisAlignment, this.mainAxisSize, diff --git a/lib/src/widgets/sdui_scaffold.dart b/lib/src/widgets/glimpse_scaffold.dart similarity index 86% rename from lib/src/widgets/sdui_scaffold.dart rename to lib/src/widgets/glimpse_scaffold.dart index 79e5128..14792f9 100644 --- a/lib/src/widgets/sdui_scaffold.dart +++ b/lib/src/widgets/glimpse_scaffold.dart @@ -1,9 +1,9 @@ import 'dart:developer'; import 'package:flutter/material.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; -/// A server-driven UI widget that represents a Flutter [Scaffold] widget. +/// A Glimpse widget that represents a Flutter [Scaffold] widget. /// /// This widget implements the basic material design visual layout structure. /// It provides slots for the most common components of a screen, such as @@ -14,27 +14,27 @@ import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; /// /// Note: The [appBar] widget must resolve to a [PreferredSizeWidget] /// (such as an AppBar) to be properly displayed. -class SduiScaffold extends SduiWidget { +class GlimpseScaffold extends GlimpseWidget { /// An app bar to display at the top of the scaffold. - final SduiWidget? appBar; + final GlimpseWidget? appBar; /// The primary content of the scaffold. - final SduiWidget? body; + final GlimpseWidget? body; /// A floating action button displayed over the body. - final SduiWidget? floatingActionButton; + final GlimpseWidget? floatingActionButton; /// A bottom navigation bar to display at the bottom of the scaffold. - final SduiWidget? bottomNavigationBar; + final GlimpseWidget? bottomNavigationBar; /// A navigation drawer that slides in from the left side. - final SduiWidget? drawer; + final GlimpseWidget? drawer; /// A navigation drawer that slides in from the right side. - final SduiWidget? endDrawer; + final GlimpseWidget? endDrawer; /// A bottom sheet displayed above the scaffold body. - final SduiWidget? bottomSheet; + final GlimpseWidget? bottomSheet; /// The color of the scaffold's background. final Color? backgroundColor; @@ -66,11 +66,11 @@ class SduiScaffold extends SduiWidget { /// Whether the end drawer can be opened with a drag gesture. final bool? endDrawerEnableOpenDragGesture; - /// Creates a new [SduiScaffold] widget. + /// Creates a new [GlimpseScaffold] widget. /// /// All parameters are optional. The scaffold will display only the /// components that are provided. - SduiScaffold({ + GlimpseScaffold({ this.appBar, this.body, this.floatingActionButton, @@ -98,8 +98,7 @@ class SduiScaffold extends SduiWidget { if (potentialAppBar is PreferredSizeWidget) { flutterAppBar = potentialAppBar; } else { - log( - "Warning: appBar widget for SduiScaffold is not a PreferredSizeWidget. It might not render correctly."); + log("Warning: appBar widget for GlimpseScaffold is not a PreferredSizeWidget. It might not render correctly."); } } diff --git a/lib/src/widgets/sdui_sized_box.dart b/lib/src/widgets/glimpse_sized_box.dart similarity index 75% rename from lib/src/widgets/sdui_sized_box.dart rename to lib/src/widgets/glimpse_sized_box.dart index 1eb7de5..91b6237 100644 --- a/lib/src/widgets/sdui_sized_box.dart +++ b/lib/src/widgets/glimpse_sized_box.dart @@ -1,7 +1,7 @@ import 'package:flutter/widgets.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; -/// A server-driven UI widget that represents a Flutter [SizedBox] widget. +/// A Glimpse widget that represents a Flutter [SizedBox] widget. /// /// This widget forces its child to have a specific width and/or height. /// It's useful for creating fixed-size layouts or adding spacing between widgets. @@ -9,7 +9,7 @@ import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; /// If no dimensions are specified, the widget will try to be as big as possible. /// If only one dimension is specified, the widget will try to be as big as /// possible in the other dimension. -class SduiSizedBox extends SduiWidget { +class GlimpseSizedBox extends GlimpseWidget { /// The width to constrain the child to. final double? width; @@ -17,14 +17,14 @@ class SduiSizedBox extends SduiWidget { final double? height; /// The widget below this widget in the tree. - final SduiWidget? child; + final GlimpseWidget? child; - /// Creates a new [SduiSizedBox] widget. + /// Creates a new [GlimpseSizedBox] widget. /// /// All parameters are optional. If neither [width] nor [height] are /// specified, the child will be unconstrained. If only one dimension /// is specified, the child will be constrained in that dimension only. - SduiSizedBox({this.width, this.height, this.child}); + GlimpseSizedBox({this.width, this.height, this.child}); @override Widget toFlutterWidget() { diff --git a/lib/src/widgets/sdui_spacer.dart b/lib/src/widgets/glimpse_spacer.dart similarity index 76% rename from lib/src/widgets/sdui_spacer.dart rename to lib/src/widgets/glimpse_spacer.dart index 5d33740..0404aae 100644 --- a/lib/src/widgets/sdui_spacer.dart +++ b/lib/src/widgets/glimpse_spacer.dart @@ -1,25 +1,25 @@ import 'package:flutter/widgets.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; -/// A server-driven UI widget that represents a Flutter [Spacer] widget. +/// A Glimpse widget that represents a Flutter [Spacer] widget. /// /// This widget creates an adjustable, empty spacer that can be used to tune /// the spacing between widgets in a [Flex] container, like [Row] or [Column]. /// /// The spacer takes up space proportional to its [flex] value relative to /// other flexible widgets in the same container. -class SduiSpacer extends SduiWidget { +class GlimpseSpacer extends GlimpseWidget { /// The flex factor to use for determining how much space to take up. /// /// The amount of space this widget takes up is proportional to its [flex] /// value divided by the total flex values of all widgets in the container. final int flex; - /// Creates a new [SduiSpacer] widget. + /// Creates a new [GlimpseSpacer] widget. /// /// The [flex] parameter defaults to 1, which means the spacer will take /// up an equal amount of space as other spacers with the same flex value. - SduiSpacer({this.flex = 1}); + GlimpseSpacer({this.flex = 1}); @override Widget toFlutterWidget() { diff --git a/lib/src/widgets/sdui_text.dart b/lib/src/widgets/glimpse_text.dart similarity index 92% rename from lib/src/widgets/sdui_text.dart rename to lib/src/widgets/glimpse_text.dart index 9a9a1d0..9db0f12 100644 --- a/lib/src/widgets/sdui_text.dart +++ b/lib/src/widgets/glimpse_text.dart @@ -1,14 +1,14 @@ import 'package:flutter/widgets.dart'; -import 'package:flutter_sdui/src/widgets/sdui_widget.dart'; +import 'package:flutter_glimpse/src/widgets/glimpse_widget.dart'; -/// A server-driven UI widget that represents a Flutter [Text] widget. +/// A Glimpse widget that represents a Flutter [Text] widget. /// /// This widget allows displaying text with customizable styling properties /// that can be defined on the server side and rendered on the client. /// /// The widget supports all common text properties including font styling, /// alignment, overflow handling, and text direction. -class SduiText extends SduiWidget { +class GlimpseText extends GlimpseWidget { /// The text content to display. final String text; @@ -54,12 +54,12 @@ class SduiText extends SduiWidget { /// The directionality of the text. final TextDirection? textDirection; - /// Creates a new [SduiText] widget. + /// Creates a new [GlimpseText] widget. /// /// The [text] parameter is required and specifies the content to display. /// All other parameters are optional and can be used to customize the /// appearance and behavior of the text. - SduiText( + GlimpseText( this.text, { this.style, this.textAlign, diff --git a/lib/src/widgets/glimpse_widget.dart b/lib/src/widgets/glimpse_widget.dart new file mode 100644 index 0000000..8f7b47b --- /dev/null +++ b/lib/src/widgets/glimpse_widget.dart @@ -0,0 +1,20 @@ +import 'package:flutter/widgets.dart'; + +/// Abstract base class for all Glimpse widgets. +/// +/// This class defines the contract that all Glimpse widgets must implement. +/// Each Glimpse widget can be converted to its corresponding Flutter widget +/// through the [toFlutterWidget] method. +/// +/// All concrete Glimpse widget implementations should extend this class and +/// provide their own implementation of [toFlutterWidget]. +abstract class GlimpseWidget { + /// Converts this Glimpse widget to its corresponding Flutter widget. + /// + /// This method is responsible for mapping the Glimpse widget's properties + /// to the equivalent Flutter widget properties and returning a fully + /// configured Flutter widget instance. + /// + /// Returns a [Widget] that can be rendered in the Flutter widget tree. + Widget toFlutterWidget(); +} diff --git a/lib/src/widgets/sdui_widget.dart b/lib/src/widgets/sdui_widget.dart deleted file mode 100644 index d50a7b4..0000000 --- a/lib/src/widgets/sdui_widget.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:flutter/widgets.dart'; - -/// Abstract base class for all Server-Driven UI widgets. -/// -/// This class defines the contract that all SDUI widgets must implement. -/// Each SDUI widget can be converted to its corresponding Flutter widget -/// through the [toFlutterWidget] method. -/// -/// All concrete SDUI widget implementations should extend this class and -/// provide their own implementation of [toFlutterWidget]. -abstract class SduiWidget { - /// Converts this SDUI widget to its corresponding Flutter widget. - /// - /// This method is responsible for mapping the SDUI widget's properties - /// to the equivalent Flutter widget properties and returning a fully - /// configured Flutter widget instance. - /// - /// Returns a [Widget] that can be rendered in the Flutter widget tree. - Widget toFlutterWidget(); -} diff --git a/pubspec.yaml b/pubspec.yaml index 522644f..e3aabee 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ -name: flutter_sdui +name: flutter_glimpse description: "A Flutter package for Server-Driven UI with JSON and gRPC support. Build dynamic UIs updated from the server without app releases." version: 0.0.1 -homepage: https://github.com/GDGVIT/flutter-sdui-package -repository: https://github.com/GDGVIT/flutter-sdui-package +homepage: https://github.com/GDGVIT/flutter-glimpse +repository: https://github.com/GDGVIT/flutter-glimpse environment: sdk: ">=3.0.0 <4.0.0" diff --git a/test/flutter_sdui_test.dart b/test/flutter_glimpse_test.dart similarity index 62% rename from test/flutter_sdui_test.dart rename to test/flutter_glimpse_test.dart index d810967..3fa940f 100644 --- a/test/flutter_sdui_test.dart +++ b/test/flutter_glimpse_test.dart @@ -3,32 +3,33 @@ import 'package:flutter/material.dart'; import 'dart:convert'; import 'dart:io'; -import 'package:flutter_sdui/src/parser/sdui_proto_parser.dart'; +import 'package:flutter_glimpse/src/parser/glimpse_proto_parser.dart'; -/// Main test entry point for Flutter SDUI package. +/// Main test entry point for Flutter Glimpse package. /// /// This test demonstrates JSON parsing functionality by loading an example -/// JSON file, parsing it into SDUI widgets, and rendering as Flutter widgets. +/// JSON file, parsing it into Glimpse widgets, and rendering as Flutter widgets. void main() async { WidgetsFlutterBinding.ensureInitialized(); - group('Flutter SDUI Tests', () { + group('Flutter Glimpse Tests', () { test('JSON parsing and widget conversion', () async { final file = File('example/example.json'); final jsonString = await file.readAsString(); final Map jsonData = json.decode(jsonString); - final sduiWidget = SduiParser.parseJSON(jsonData); + final sduiWidget = GlimpseParser.parseJSON(jsonData); final widget = sduiWidget.toFlutterWidget(); expect(widget, isA()); expect(sduiWidget, isNotNull); }); - test('SDUI parser handles empty JSON', () { + test('Glimpse parser handles empty JSON', () { final emptyJson = {}; - expect(() => SduiParser.parseJSON(emptyJson), throwsA(isA())); + expect( + () => GlimpseParser.parseJSON(emptyJson), throwsA(isA())); }); }); } diff --git a/tool/generate_protos.ps1 b/tool/generate_protos.ps1 index 0e6ad00..ebb3852 100644 --- a/tool/generate_protos.ps1 +++ b/tool/generate_protos.ps1 @@ -35,7 +35,7 @@ Write-Host "Using protoc_plugin from: $PROTOC_GEN_DART" # Run protoc to generate Dart files with our local binary Write-Host "Generating Protobuf files..." -& "$protoBinDir\protoc.exe" --dart_out=grpc:lib/src/generated --proto_path=lib/src/protos lib/src/protos/sdui.proto +& "$protoBinDir\protoc.exe" --dart_out=grpc:lib/src/generated --proto_path=lib/src/protos lib/src/protos/glimpse.proto Write-Host "Protobuf files generated in lib/src/generated/"